|
M16C6NK Datasheet, PDF (195/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES | |||
|
◁ |
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
15. Serial Interface
Table 15.11 Registers to Be Used and Settings in I2C Mode
Register
UiTB (1)
UiRB (1)
UiBRG
UiMR (1)
UiC0
UiC1
UiSMR
Bit
0 to 7
0 to 7
8
ABT
OER
0 to 7
SMD2 to SMD0
CKDIR
IOPOL
CLK1, CLK0
CRS
TXEPT
CRD
NCH
CKPOL
UFORM
TE
TI
RE
RI
U2IRS (2)
U2RRM (2),
UiLCH, UiERE
IICM
ABC
UiSMR2
BBS
3 to 7
IICM2
CSC
SWC
ALS
STAC
UiSMR3
UiSMR4
SWC2
SDHI
7
0, 2, 4 and NODC
CKPH
DL2 to DL0
STAREQ
RSTAREQ
STPREQ
STSPSEL
ACKD
ACKC
SCLHI
SWC9
IFSR0
UCON
IFSR06, ISFR07
U0IRS, U1IRS
Function
Master
Set transmission data
Reception data can be read
ACK or NACK is set in this bit
Arbitration lost detection flag
Invalid
Overrun error flag
Set a transfer rate
Invalid
Set to â010bâ
Set to â0â
Set to â1â
Set to â0â
Select the count source for the UiBRG register Invalid
Invalid because the CRD bit = 1
Transmit register empty flag
Set to â1â
Set to â1â
Set to â0â
Set to â1â
Set this bit to â1â to enable transmission
Transmit buffer empty flag
Set this bit to â1â to enable reception
Reception complete flag
Invalid
Set to â0â
Slave
Set to â1â
Select the timing at which arbitration-lost Invalid
is detected
Bus busy flag
Set to â0â
See Table 15.12 I2C Mode Functions
Set this bit to â1â to enable clock synchronization Set to â0â
Set this bit to â1â to have SCLi output fixed to âLâ at the falling edge of the 9th bit of clock
Set this bit to â1â to have SDAi output
Set to â0â
stopped when arbitration-lost is detected
Set to â0â
Set this bit to â1â to initialize UARTi at
start condition detection
Set this bit to â1â to have SCLi output forcibly pulled low
Set this bit to â1â to disable SDAi output
Set to â0â
Set to â0â
See Table 15.12 I2C Mode Functions
Set the amount of SDAi digital delay
Set this bit to â1â to generate start condition Set to â0â
Set this bit to â1â to generate restart condition Set to â0â
Set this bit to â1â to generate stop condition Set to â0â
Set this bit to â1â to output each condition
Set to â0â
Select ACK or NACK
Set this bit to â1â to output ACK data
Set this bit to â1â to have SCLi output
Set to â0â
stopped when stop condition is detected
Set to â0â
Set this bit to â1â to set the SCLi to âLâ hold
at the falling edge of the 9th bit of clock
Set to â1â
Invalid
2 to 7
Set to â0â
i = 0 to 2
NOTES:
1. Not all register bits are described above. Set those bits to â0â when writing to the registers in I2C mode.
2. Set the bit 4 and bit 5 in the U0C1 and U1C1 registers to â0â. The U0IRS, U1IRS, U0RRM and U1RRM bits are in the UCON
register.
Rev.2.00 Nov 28, 2005 page 177 of 378
REJ09B0124-0200
|
▷ |