3874 Group User's Manual
APPLICATION
2-93
2.5 Serial I/O
Fig. 2.5.19 Example of control procedure
Set the baud rate generator.
Write the transmit data to the transmit buffer register.
Set “1” to the serial I/O1 transmit interrupt enable bit.
Set “1” to the serial I/O1 receive interrupt enable bit.
Set “1” to the serial I/O1 transmit/receive interrupt
enable bit for each vector.
Set “0” to the serial I/O1 transmit/receive interrupt
enable bit for each vector.
Set “0” to the serial I/O1 transmit interrupt enable bit.
Set “0” to the serial I/O1 receive interrupt enable bit.
Set “0” to the serial I/O1 transmit interrupt request bit
for each vector
Set “0” to the serial I/O1 transmit interrupt request bit.
Set “0” to the serial I/O1 receive interrupt request bit.
Select BRG count source
← f(XIN)/4
Synchronous clock
←
Set serial I/O1 control register
BRG count source
← f(XIN)/4
Synchronous clock
←
Set the baud rate generator.
Write the transmit data to the transmit buffer register
in the full-duplex communication.
Set serial I/O1 control register
Set “0” to the serial I/O1 transmit interrupt request bit
for each vector.
Set “0” to the serial I/O1 transmit interrupt request bit.
Set “0” to the serial I/O1 receive interrupt request bit.
Set “1” to the serial I/O1 transmit interrupt enable bit.
Set “1” to the serial I/O1 receive interrupt enable bit.
Set “1” to the serial I/O1 transmit/receive interrupt
enable bit for each vector.
Set “0” to the serial I/O1 transmit/receive interrupt
enable bit for each vector.
Set “0” to the serial I/O1 transmit interrupt enable bit.
Set “0” to the serial I/O1 receive interrupt enable bit.
3874 group 1
3874 group 2
SIO1CON (address: 1A16)
10
1
10 1
SIO1CON (address: 1A16)
10
1
01
Serial I/O1 transmit interrupt
Serial I/O1 receive interrupt
Serial I/O1 transmit interrupt
Serial I/O1 receive interrupt
BRG output/16
Select transmit interrupt factor
Transmit enabled
Receive enabled (in full-duplex
communication)
Clock asynchronous serial I/O
Serial I/O1 enabled
BRG output/16
Select transmit interrupt factor
Transmit enabled (in full-duplex
communication)
Receive enabled
Clock asynchronous serial I/O
Serial I/O1 enabled
Set UART control register
Character length selected
Parity enable bit set
Parity selected
Stop bit length selected
P45/TxD P-channel output selected
UARTCON (address: 1B16)
Set UART control register
Character length selected
Parity enable bit set
Parity selected
Stop bit length selected
P45/TxD P-channel output selected
UARTCON (address: 1B16)