Section 14 Serial Communication Interface with FIFO (SCIF)
Rev. 2.00 Mar 09, 2006 page 631 of 906
REJ09B0292-0200
14.5
Usage Notes
The following points should be noted when using the SCIF.
SCFTDR Writing and the TDFE Flag:
The TDFE flag in the serial status 1 register (SC1SSR)
is set when the number of transmit data bytes written in the transmit FIFO data register (SCFTDR)
has fallen to or below the transmit trigger number set by bits TTRG1 and TTRG0 in the FIFO
control register (SCFCR). After TDFE is set, transmit data up to the number of empty bytes in
SCFTDR can be written, allowing efficient continuous transmission.
However, if the number of data bytes written in SCFTDR is equal to or less than the transmit
trigger number, the TDFE flag will be set to 1 again after being read as 1 and cleared to 0. TDFE
clearing should therefore be carried out when SCFTDR contains more than the transmit trigger
number of transmit data bytes.
The number of transmit data bytes in SCFTDR can be found from the upper 8 bits of the FIFO
data count register (SCFDR).
Simultaneous Multiple Receive Errors:
If a number of receive errors occur at the same time, the
state of the status flags in SC1SSR and SC2SSR is as shown in table 14.14. If there is an overrun
error, data is not transferred from the receive shift register (SCRSR) to the receive FIFO data
register (SCFRDR), and the receive data is lost.
Table 14.14 SC1SSR/SC2SSR Status Flags and Transfer of Receive Data
SC1SSR/SC2SSR Status Flags
Receive Data Transfer
Receive Errors
RDF
ORER
FER
PER
SCRSR
→
→
→
→
SCFRDR
Overrun error
1
1
0
0
×
Framing error
0
0
1
0
O
Parity error
0
0
0
1
O
Overrun error + framing error
1
1
1
0
×
Overrun error + parity error
1
1
0
1
×
Framing error + parity error
0
0
1
1
O
Overrun error + framing error +
parity error
1
1
1
1
×
Notes: O: Receive data is transferred from SCRSR to SCFRDR.
×
: Receive data is not transferred from SCRSR to SCFRDR.
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...