BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
719 / 1149
Rev.1.02
(1) Register settings
Figure 19-121 Simple I
2
C (IIC00, IIC01, IIC10, IIC11 , IIC20, IIC21, IIC30, IIC31 ) when the data is sent
Example of register setting content
(a) serial mode register mn (SMRmn)
do not operate this register wihle data is transmitting or receiving.
(b) serial communication operation configuration register mn (SCRmn)
do not operate bits other than TXEmn and RXEmn
of this register wihle data is transmitting or receiving.
(c) serial data regsiter mn (SDRmn) (low 8 bit: SIOr)
only lower 8 bits valid wihle data is transmitting or receiving.
(d) serial output register m (Som)
do not operate this register wihle data is transmitting or receiving.
(e) serial otuput enable register m (SOEm)
do not operate this register wihle data is transmitting or receiving.
(f) serial channel start register m (SSm)
do not operate this register wihle data is transmitting or receiving.
baud rate configuration
Note4
configuration of transmit data
Note1
Note1
Note2
Note3
Note5
Note5
Note5
Note5
Note5
Note5
Note5
Note5
Note 1
Limited to
SMR01,
SMR03,
SMR11,
SMR21
registers.
2. Limited to
SCR00,
SCR02,
SCR10,
SCR20
registers.
3. Limited to
SCR00
registers and
SCR01
registers, other fixed as
"1".
4. Because it has already been set when sending the address segment, it does not need to be set.
5. During the operation of the communication, the value changes due to the communication data.
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.