
2-39
3802 GROUP USER’S MANUAL
APPLICATION
2.3 Serial I/O
Figure 2.3.25 shows a setting of serial I/O1 related registers, and Figure 2.3.26 shows a setting of
serial I/O1 transmission data.
Fig. 2.3.26 Setting of serial I/O1 transmission data [Output of serial data]
Fig. 2.3.25 Setting of serial I/O1 related registers [Output of serial data]
Serial I/O1 synchronous clock selection bit : BRG/4
SRDY1
output enable bit : Not use the SRDY1 signal output function
0
Serial I/O1 transmit interrupt enable bit : Interrupt disabled
ICON1
Interrupt control register 1 (Address : 3E16)
Serial I/O1 transmit interrupt request bit
Using this bit, check the completion of
transmitting 1-byte base data.
“1” : Transmit shift completion
IREQ1
Interrupt request register 1 (Address : 3C16)
00
1
SIO1CON
Serial I/O1 control register (Address : 1A16)
0
11
BRG count source selection bit : f(XIN)
Transmit interrupt source selection bit : Transmit shift operating
completion
Transmit enable bit : Transmit enabled
1
Receive enable bit : Receive disabled
b7
b0
0
b7
b0
b7
b0
Serial I/O1 mode selection bit : Clock synchronous serial I/O
Serial I/O1 enable bit : Serial I/O1 enabled
0
P45/TXD P-channel output disable bit : CMOS output
UARTCON
UART control register (Address : 1B16)
b7
b0
7
Set “division ratio – 1”
BRG
Baud rate generator (Address : 1C16)
b7
b0
Set a transmission data.
Check that transmission of the previous data is
completed before writing data (bit 3 of the
Interrupt request register 1 is set to “1”).
TB/RB
Transmit/Receive buffer register (Address : 1816)
b7
b0