APPLICATION
2.5 Serial I/O
3825 GROUP USER’S MANUAL
2–138
2.5.5 Notes on use
(1) Notes on clock selection
The 3825 group can select either internal clock or external clock as a synchronizing clock. When an
external clock is selected as an synchronizing clock in the clock synchronous mode, note the follow-
ing.
sIn the clock synchronous mode
For an external clock source, when the duty cycle is 50%, use the following clock.
1.25 MHz or less....... at VCC = 4.0 V to 5.5 V
500 kHz or less.........at VCC = 2.5 V to 4.0 V
To change the duty cycle, set the both “H” and “L” widths as follows.
370 ns min. ............. at VCC = 4.0 V to 5.5 V
950 ns min. ............. at VCC = 2.5 V to 4.0 V
The shift operation of the transmit shift register or the receive shift register is continued while
synchronizing clocks are input to the serial I/O circuit. Accordingly, stop a synchronizing clock input
after 8 clocks are input.
When the internal clock is selected, the synchronizing clock input is automatically stopped.
To select an external clock as a synchronizing clock at data transmission, set the transmit enable
bit to “1” and write data into the transmit buffer register while the SCLK signal is “H.”
When an external clock is selected as a synchronizing clock in the UART mode, note the following.
sIn the UART mode
For an external clock source, when the duty ratio is 50%, use the following clock.
5 MHz or less..... at VCC = 4.0 V to 5.5 V
2 MHz or less..... at VCC = 2.5 V to 4.0 V
To change the duty cycle, set the “H” and “L” widths as follows.
93 ns min.
........at VCC = 4.0 V to 5.5 V
238 ns min. ........at VCC = 2.5 V to 4.0 V
(2) For serial I/O transmit or receive interrupts
For a serial I/O transmit interrupt, set a value in the serial I/O control register, then set the serial
I/O transmit interrupt request bit (bit 3 at address 003C16) to “0” with the CLB instruction.
After setting , set the serial I/O transmit enable bit (bit 3 at address 003E16) to “1.”
For a serial I/O receive interrupt, set a value in the serial I/O control register, then set the serial
I/O receive interrupt request bit (bit 2 at address 003C16) to “0” with the CLB instruction.
After setting , set the serial I/O receive interrupt enable bit (bit 2 at address 003E16) to “1.”
(3) Transmit interrupt request when the transmit enable bit is “1”
When the transmit enable bit is set to “1,” the transmit buffer empty flag and the transmit shift register
shift completion flag are set to “1.” Accordingly, even if either timing is selected as transmit interrupt
generating timing, an serial I/O transmit interrupt request occurs and the serial I/O transmit interrupt
request bit is set to “1.”
To use a serial I/O transmit interrupt, set the transmit enable bit to “1,” then set the serial I/O transmit
interrupt request bit to “0” once. After that, set the serial I/O transmit interrupt enable bit to “1”
(interrupts enabled).