mc9s08qg8 Freescale Semiconductor, Inc, mc9s08qg8 Datasheet - Page 157

no-image

mc9s08qg8

Manufacturer Part Number
mc9s08qg8
Description
Hcs08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08qg84CDNE
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
mc9s08qg84CDTE
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
mc9s08qg8CDT
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08qg8CDTE
Manufacturer:
ABB
Quantity:
101
Part Number:
mc9s08qg8CDTE
Manufacturer:
Freescale Semiconductor
Quantity:
41 991
Part Number:
mc9s08qg8CDTE
Manufacturer:
FREESCALE
Quantity:
500
Part Number:
mc9s08qg8CDTE
Manufacturer:
FREESCALE
Quantity:
500
Part Number:
mc9s08qg8CDTE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08qg8CDTER
0
Part Number:
mc9s08qg8CFFE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08qg8CFFE
Quantity:
16
Part Number:
mc9s08qg8CFKE
Manufacturer:
FREESCALE
Quantity:
31 848
Part Number:
mc9s08qg8CFKE
Manufacturer:
FREESCALE
Quantity:
31 848
Part Number:
mc9s08qg8CPBE
Manufacturer:
CYPRESS
Quantity:
310
Part Number:
mc9s08qg8CPBE
0
Freescale Semiconductor
1.
2.
3.
4.
1.
2.
3.
4.
5.
6.
7.
Write: IICA
— to set the slave address
Write: IICC
— to enable IIC and interrupts
Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data
Initialize RAM variables used to achieve the routine shown in
Write: IICF
— to set the IIC baud rate (example provided in this chapter)
Write: IICC
— to enable IIC and interrupts
Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data
Initialize RAM variables used to achieve the routine shown in
Write: IICC
— to enable TX
Write: IICC
— to enable MST (master mode)
Write: IICD
— with the address of the target slave. (The LSB of this byte will determine whether the communication is
The routine shown in
incoming IIC message that contains the proper address will begin IIC communication. For master operation,
communication must be initiated by writing to the IICD register.
IICC
IICD
IICA
IICS
IICF
master receive or transmit.)
Address to which the module will respond when addressed as a slave (in slave mode)
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
IICEN
TCF
MULT
Figure 11-3
IICIE
IAAS
MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 1.01
Figure 11-2. IIC Module Quick Start
BUSY
MST
Module Initialization (Master)
can handle both master and slave IIC operations. For slave operation, an
Module Initialization (Slave)
Register Model
ARBL
Module Use
TX
ADDR
DATA
TXAK
0
ICR
Figure 11-3
Figure 11-3
RSTA
SRW
Chapter 11 Inter-Integrated Circuit (S08IICV1)
IICIF
0
RXAK
0
0
157

Related parts for mc9s08qg8