English
Language : 

MC9S08AC16_0911 Datasheet, PDF (234/336 Pages) Freescale Semiconductor, Inc – HCS08 Microcontrollers
Inter-Integrated Circuit (S08IICV2)
Field
7–0
DATA
Table 13-7. IIC1D Field Descriptions
Description
Data — In master transmit mode, when data is written to the IIC1D, a data transfer is initiated. The most
significant bit is sent first. In master receive mode, reading this register initiates receiving of the next byte of data.
NOTE
When transitioning out of master receive mode, the IIC mode should be
switched before reading the IIC1D register to prevent an inadvertent
initiation of a master receive data transfer.
In slave mode, the same functions are available after an address match has occurred.
The TX bit in IIC1C must correctly reflect the desired direction of transfer in master and slave modes for
the transmission to begin. For instance, if the IIC is configured for master transmit but a master receive is
desired, reading the IIC1D does not initiate the receive.
Reading the IIC1D returns the last byte received while the IIC is configured in master receive or slave
receive modes. The IIC1D does not reflect every byte transmitted on the IIC bus, nor can software verify
that a byte has been written to the IIC1D correctly by reading it back.
In master transmit mode, the first byte of data written to IIC1D following assertion of MST is used for the
address transfer and should comprise of the calling address (in bit 7 to bit 1) concatenated with the required
R/W bit (in position bit 0).
13.3.6 IIC Control Register 2 (IIC1C2)
7
6
5
4
3
2
1
0
R
0
0
0
GCAEN
ADEXT
AD10
AD9
AD8
W
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 13-8. IIC Control Register (IIC1C2)
Table 13-8. IIC1C2 Field Descriptions
Field
Description
7
GCAEN
6
ADEXT
2–0
AD[10:8]
General Call Address Enable. The GCAEN bit enables or disables general call address.
0 General call address is disabled
1 General call address is enabled
Address Extension. The ADEXT bit controls the number of bits used for the slave address.
0 7-bit address scheme
1 10-bit address scheme
Slave Address. The AD[10:8] field contains the upper three bits of the slave address in the 10-bit address
scheme. This field is only valid when the ADEXT bit is set.
MC9S08AC16 Series Data Sheet, Rev. 8
234
Freescale Semiconductor