
531
Start transmitting/receive
Initialization
Read TDRE bit in SSR
All
data transmitted/and
received
End transmission/reception
1
2
No
Yes
TDRE = 1?
Write transmission data in TDR
and clear TDRE bit of SSR to 0
RDRF = 1?
Yes
No
Clear TE and RE bits of SCR to 0
Yes
No
Read ORER bit of SSR
Error handling
3
ORER = 1?
Yes
Read receive data of RDR,
and clear RDRF bit of SSR to 0
Read RDRF bit of SSR
4
5
No
Figure 14.23 Sample Flowchart for Serial Transmission
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...