MC9S08JM16CGTE FREESCALE [Freescale Semiconductor, Inc], MC9S08JM16CGTE Datasheet - Page 175

no-image

MC9S08JM16CGTE

Manufacturer Part Number
MC9S08JM16CGTE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
11.7
Freescale Semiconductor
Initialization/Application Information
1. Write: IICC2
2. Write: IICA
3. Write: IICC1
4. Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data
5. Initialize RAM variables used to achieve the routine shown in
1. Write: IICF
2. Write: IICC1
3. Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data
4. Initialize RAM variables used to achieve the routine shown in
5. Write: IICC1
— to enable or disable general call
— to select 10-bit or 7-bit addressing mode
— to set the slave address
— to enable IIC and interrupts
— to set the IIC baud rate (example provided in this chapter)
— to enable IIC and interrupts
— to enable TX
IICC1
IICC2 GCAEN ADEXT
IICA
IICS
IICD
IICF
When addressed as a slave (in slave mode), the module responds to this address
Data register; Write to transmit IIC data read to read IIC data
Baud rate = BUSCLK / (2 x MULT x (SCL DIVIDER))
Module configuration
Module status flags
Address configuration
IICEN
TCF
MULT
IAAS
IICIE
Figure 11-11. IIC Module Quick Start
MC9S08JM16 Series Data Sheet, Rev. 2
BUSY
MST
Module Initialization (Master)
Module Initialization (Slave)
0
Register Model
ARBL
TX
AD[7:1]
0
DATA
TXAK
0
0
ICR
RSTA
SRW
AD10
IICIF
AD9
Inter-Integrated Circuit (S08IICV2)
Figure 11-12
Figure 11-12
0
RXAK
AD8
0
0
175

Related parts for MC9S08JM16CGTE