Datasheet

Section 15 Serial Communication Interface (SCI and IrDA)
Rev. 3.00 Mar 21, 2006 page 408 of 788
REJ09B0300-0300
Reception: Before making a transition to module stop, software standby, watch, sub-active, or
sub-sleep mode, stop reception (RE = 0). RSR, RDR, and SSR are reset. If a transition is made
during data reception, the data being received will be invalid.
To receive data in the same reception mode after mode cancellation, set RE to 1, and then start
reception. To receive data in a different reception mode, initialize the SCI first.
Figure 15.27 shows a sample flowchart for mode transition during reception.
Start transmission
Transmission
[1]
No
No
No
Yes
Yes
Yes
Read TEND flag in SSR
Make transition to software standby mode etc.
Cancel software standby mode etc.
TE = 0
Initialization TE = 1
[2]
[3]
All data transmitted?
Change operating mode?
TEND = 1
[1] Data being transmitted is lost
halfway. Data can be normally
transmitted from the CPU by
setting TE to 1, reading SSR,
writing to TDR, and clearing
TDRE to 0 after mode
cancellation; however, if the DTC
has been initiated, the data
remaining in DTC RAM will be
transmitted when TE and TIE are
set to 0.
[2] Also clear TIE and TEIE to 0
when they are 1.
[3] Module stop, watch, sub-active,
and sub-sleep modes are
included.
Figure 15.24 Sample Flowchart for Mode Transition during Transmission