|
M38203M4 Datasheet, PDF (225/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.5 Serial I/O1
2.5.5 Notes on use
(1) Notes on clock selection
The 3820 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/O1 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 SCLK1 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/O1 transmit or receive interrupts
ÂFor a serial I/O1 transmit interrupt, set a value in the serial I/O1 control register, then set the serial
I/O1 transmit interrupt request bit (bit 3 at address 003C16) to â0â with the CLB instruction.
ÂAfter setting Â, set the serial I/O1 transmit enable bit (bit 3 at address 003E16) to â1.â
ÂFor a serial I/O1 receive interrupt, set a value in the serial I/O1 control register, then set the serial
I/O1 receive interrupt request bit (bit 2 at address 003C16) to â0â with the CLB instruction.
ÂAfter setting Â, set the serial I/O1 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/O1 transmit interrupt request occurs and the serial I/O1 transmit interrupt
request bit is set to â1.â
To use a serial I/O1 transmit interrupt, set the transmit enable bit to â1,â then set the serial I/O1
transmit interrupt request bit to â0â once. After that, set the serial I/O1 transmit interrupt enable bit to
â1â (interrupts enabled).
3820 GROUP USERâS MANUAL
2â139
|
▷ |