
2-26
3802 GROUP USER’S MANUAL
APPLICATION
2.3 Serial I/O
A count value of Baud rate generator is set.
Function
Baud rate generator (BRG) [Address : 1C16]
Baud rate generator
b7 b6 b5 b4 b3 b2 b1 b0
B
At reset
RW
0
1
2
3
4
5
6
7
?
Fig. 2.3.6 Structure of Baud rate generator
Fig. 2.3.7 Structure of Serial I/O2 control register
Serial I/O2 control register (SIO2CON) [Address : 1D16]
Serial I/O2 control register
b7 b6 b5 b4 b3 b2 b1 b0
B
Function
At reset RW
0
1
2
3
0
Name
4
5
6
7
0
SRDY2
output enable bit
Internal synchronous clock
selection bits
0 : I/O port (P51, P52)
1 : SOUT2, SCLK2 output pin
0 : I/O port (P53)
1 : SRDY2 output pin
0 : LSB first
1 : MSB first
0 : External clock
1 : Internal clock
0 0 0 : f(XIN)/8
0 0 1 : f(XIN)/16
0 1 0 : f(XIN)/32
0 1 1 : f(XIN)/64
1 1 0 : f(XIN)/128
1 1 1 : f(XIN)/256
Transfer direction selection bit
Serial I/O2 port selection bit
Serial I/O2 synchronous clock
selection bit
P51/SOUT2 P-channel
output disable bit
b2 b1 b0
0 : CMOS output
1 : N-channel open-drain output
In output mode
0