
Section 10 Serial Communication Interface
Rev. 6.00 Sep 12, 2006 page 337 of 526
REJ09B0326-0600
For further details, see section 3.3, Interrupts.
10.3.8 Application
Notes
The following points should be noted when using SCI3.
1. Relation between writes to TDR and bit TDRE
Bit TDRE in the serial status register (SSR) is a status flag that indicates that data for serial
transmission has not been prepared in TDR. When data is written to TDR, bit TDRE is cleared
to 0 automatically. When SCI3 transfers data from TDR to TSR, bit TDRE is set to 1.
Data can be written to TDR irrespective of the state of bit TDRE, but if new data is written to
TDR while bit TDRE is cleared to 0, the data previously stored in TDR will be lost of it has
not yet been transferred to TSR. Accordingly, to ensure that serial transmission is performed
dependably, you should first check that bit TDRE is set to 1, then write the transmit data to
TDR once only (not two or more times).
2. Operation when a number of receive errors occur simultaneously
If a number of receive errors are detected simultaneously, the status flags in SSR will be set to
the states shown in table 10.17. If an overrun error is detected, data transfer from RSR to RDR
will not be performed, and the receive data will be lost.
Table 10.17 SSR Status Flag States and Receive Data Transfer
SSR Status Flags
Receive Data Transfer
RDRF
*
OER FER PER (RSR
→
→
→
→
RDR)
Receive Error Status
1 1 0
0
×
Overrun
error
0 0 1
0 O
Framing
error
0 0 0
1 O
Parity
error
1 1 1
0
×
Overrun error + framing error
1 1 0
1
×
Overrun error + parity error
0
0
1
1
O
Framing error + parity error
1 1 1
1
×
Overrun error + framing error + parity error
Legend:
O: Receive data is transferred from RSR to RDR.
×
: Receive data is not transferred from RSR to RDR.
Note:
*
Bit RDRF retains its state prior to data reception.
Содержание F-ZTAT H8/3642A Series
Страница 6: ...Rev 6 00 Sep 12 2006 page iv of xx ...
Страница 8: ...Rev 6 00 Sep 12 2006 page vi of xx ...
Страница 21: ...Rev 6 00 Sep 12 2006 page xix of xx Appendix E Product Code Lineup 522 Appendix F Package Dimensions 524 ...
Страница 22: ...Rev 6 00 Sep 12 2006 page xx of xx ...
Страница 124: ...Section 5 Power Down Modes Rev 6 00 Sep 12 2006 page 102 of 526 REJ09B0326 0600 ...
Страница 188: ...Section 6 ROM Rev 6 00 Sep 12 2006 page 166 of 526 REJ09B0326 0600 ...
Страница 190: ...Section 7 RAM Rev 6 00 Sep 12 2006 page 168 of 526 REJ09B0326 0600 ...
Страница 298: ...Section 9 Timers Rev 6 00 Sep 12 2006 page 276 of 526 REJ09B0326 0600 ...
Страница 378: ...Section 12 A D Converter Rev 6 00 Sep 12 2006 page 356 of 526 REJ09B0326 0600 ...
Страница 446: ...Section 13 Electrical Characteristics Rev 6 00 Sep 12 2006 page 424 of 526 REJ09B0326 0600 ...