ADVANCE INFORMATION
26
Micronas
3.3. XDFP Control and Status Registers
The second class are “XDFP-REGISTERS”, which are
used by the XDFP onchip controller. Access to these
registers is achieved by subaddressing. Writing to
these registers is done by sending the device write
address first, followed by the XDFP-write subaddress,
two address bits for the desired XDFP-register and the
two data bytes. For reading, the XDFP-register
address has to be transmitted first by sending the
device write address, followed by the XDFP-read sub-
address and the two XDFP-register address bytes.
Without sending a stop condition, reading of the
addressed data is done by sending the device read
address and reading two bytes of data.
Fig. 3–3 shows
I2C protocol for read and write operations
.Table 3–5on page 29 gives definitions of the XDFP control and
status registers. If these registers are smaller than 16
bit the remaining bits should be 0 on write and read
operations. Due to the internal architecture, the IC
cannot react immediately to an I2C requests, which
interacts with the onchip controller. The maximum
response timing is appr. 20 ms. If the addressed con-
troller is not ready for further transmissions on the I2C-
bus, the clock line SCL is pulled low. This puts the cur-
rent transmission into a wait state. After a certain
period of time the clock line will be released and the
interrupted transmission is carried on.
A hardware reset initializes all control registers to 0.
The automatic chip initialization loads a selected set of
The register modes are
8/16- bit width
r
read only register
w
write only register
r/w
write/read data register
Note: set unused bits to ‘0‘!
The mnemonics used in the Micronas demo software
are given in the last column.
Fig. 3–3: XDFP protocol
Table 3–3: XDFP read/write address
XDFP Read address
h’13
XDFP Write address
h’12
Ack
Nak
Ack
Start condition
Stop condition
W
R
Ack
Nak
S
P
=
1 (Read bit)
0 (Write bit)
=
0 (Acknowledge bit from DDP = grey
1 (Not acknowledge bit from Controller = hatched or
Write to XDFP control register:
Read from XDFP control register:
S 1000101 W
XDFP-readaddr.
Ack
P
S 1000101 R
highbyte addr.
lowbyte addr.
lowbyte data
Ack highbyte data
or Controller = hatched)
indicating an error state from DDP = grey)
Ack
S 1000101 W
XDFP-writeaddr.
Ack
P
highbyte addr.
lowbyte addr.
lowbyte data
highbyte data