
ML66525 Family User’s Manual
Chapter 11
Serial Port Functions
11 - 12
(3)
SIO6 receive control register (SR6CON)
Reset bit 0 (SR6MOD) to “0” to change the mode to UART mode.
Specify the receive data
length with bit 1 (SR6LN).
Specify with bit 2 (S6EXC) whether the baud rate clock is
internal (overflow output of timer 3) or external (RXC6).
Specify whether there is parity with
bit 4 (SR6PEN).
If parity is selected, specify the parity bit logic with bit 5 (SR6ODD).
With bit 6 (RC6IE), specify whether interrupt requests are enabled or disabled when a receive
complete signal occurs.
If bit 7 (SR6REN) is set to “1”, reception is enabled and the
reception operation is performed when data arrives.
11.4.3.2 Synchronous Mode Settings
Transmit settings
(1)
Port 15 mode register (P15IO)
If TXD6 (transmit data output) is to be used, set bit 1 (P15IO1) to “1” to configure that port as
an output.
If the transmit clock is to be output externally (master mode), set bit 3 (P15IO3) to
“1” to configure that port as an output.
If the baud rate clock is to be input externally (slave
mode), reset bit 3 (P15IO3) to “0” to configure that port as an input.
(2)
Port 15 secondary function control register (P15SF)
If TXD6 (transmit data output) is to be used, set bit 1 (P15SF1) to “1” to configure that port as
a secondary function output. If the transmit clock is to be output externally (master mode), set
bit 3 (P15SF3) to “1” to configure that port as a secondary function output.
If the baud rate
clock is to be input externally (slave mode), specify with bit 3 (P15SF3) whether the input will
be pulled-up.
(3)
SIO6 transmit control register (ST6CON)
Set bit 0 (ST6MOD) to “1” to specify the mode to synchronous mode.
Specify the transmit
data length with bit 1 (ST6LN).
Specify master or slave mode transmission with bit 3
(ST6STB).
With bit 6 (TR6MIE), specify whether interrupt requests are enabled or disabled
when a transmit buffer empty signal occurs.
With bit 7 (TR6NIE), specify whether interrupt
requests are enabled or disabled when a transmit complete signal occurs.
(4)
SIO6 transmit-receive buffer register (S6BUF)
Transmission is started by writing the transmit data to S6BUF.