BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
714 / 1149
Rev.1.02
(1) Register settings
Figure 19-117 Simple I
2
C (IIC00, IIC01, IIC10, IIC10 IIC11, IIC20, IIC21, IIC30, IIC31 ) when the address segment
is sent Example of register setting content
(a) serial mode register mn (SMRmn)
(b)
serial communication operation configuration registermn mn(SCRmn)
(c) serial data regsiter mn (SDRmn) (low 8 bit: SIOr)
(d) serial output register m (Som)
(e)serial otuput enable register m (SOEm)
(f) serial channel start register m (SSm)
Only set bit of target channel to 1.
generate start condition via operating Somn bit.
before generating start condition, SOEmn bit is '0', after generating start
condition, SOEmn bit is '1'.
channel n operational clock
(
fMCK
)
0: SPSm register configured pre-scaler output clock CKm0
1: SPSm register configured pre-scaler output clock CKm1
Operation mode of channel n
0: Transmit completion interrupt
stop bit configuration
01B: append 1 bit (ACK)
parity check bit configuration
00B: no parity check
baud rate configuration
configuration of transmit data(R/W)
Note1
Note1
Note2
Note3
Note 1
Limited to
SMR00,
SMR03,
SMR11,
SMR21.
2. Limited to
SCR00,
SCR02,
SCR10,
SCR20.
3. Limited to
SCR00
registers and
SCR01
registers, other fixed as
"1".
Remark1.m:unit number(m=0~2)n:channel number(n=0~3)r:IIC number(r=00, 01, 10, 11, 20, 21, 30, 31)
mn=00
~
03, 10
~
11, 20
~
21
2.
:
Fixed setting in
IIC
mode. : Cannot be set
(initial value is set).
×: This is a bit that cannot be used in this mode (and the initial value is set if it is not used in other modes).
0/1: Set "0"
or
"
1
"
according to the user's purpose.