Torwards
AT8563
5. Apply 32 clock pulses to CLKOUT
6. Read time registers to see the first change
7. Apply 64 clock pulses to CLKOUT
8. Read time registers to see the second change.
Repeat steps 7 and 8 for additional increments if necessary.
2.9 Power-On Reset override mode
The POR duration is directly related to the crystal oscillator start-up time. Due to the long
start-up times experienced by these types of circuits, a mechanism has been built in to disable
the POR and hence speed up on-board test of the device. The setting of this mode requires
that the I2C-bus pins, SDA and SCL, be toggled in a specific order as shown in Fig 5. All timing
values are required minimum.
Once the override mode has been entered, the chip immediately stops being reset and
normal operation starts i.e. entry into the EXT_CLK test mode via I2C-bus access. The
override mode is cleared by writing a logic 0 to bit TESTC. Re-entry into the override mode is
only possible after TESTC is set to logic 1. Setting TESTC to logic 0 during normal operation
has no effect except to prevent entry into the POR override mode.
Fig 5 POR override sequence.
3 Serial interface
The serial interface of AT8563 is the I2C -bus, which requires minimum connections
between MPU and it peripherals ——.a serial Data I/O line and a serial CLK line driven by
MPU.
3.1 I2C Specification
The I2C -bus is for bidirectional, two-line communication between different ICs or modules.
The two lines are a serial data line (SDA) and a serial clock line (SCL). Both lines must be
connected to a positive supply via a pull-up resistor. Data transfer may be initiated only when
the bus is idle.
The I2C -bus system configuration is shown in Fig 6. A device generating a message is a
‘transmitter’, a device receiving a message is the ‘receiver’. The device that controls the
message is the ‘master’ and the devices which are controlled by the master are the ‘slaves’.
•
12
•
深圳市宏达科技有限公司 Mobile:13530382140 曾先生