h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 505

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
16.7.7
Data reception in smart card interface mode is identical to that in normal serial communication
interface mode. Figure 16.32 shows the data re-transfer operation during reception.
1. If a parity error is detected in receive data, the PER bit in SSR is set to 1. Here, an ERI
2. For the frame in which a parity error is detected, the RDRF bit in SSR is not set to 1.
3. If no parity error is detected, the PER bit in SSR is not set to 1. In this case, data is determined
Figure 16.33 shows a sample flowchart for reception. All the processing steps are automatically
performed using an RXI interrupt request to activate the DTC. In reception, setting the RIE bit to 1
allows an RXI interrupt request to be generated when the RDRF flag is set to 1. This activates
DTC by an RXI request thus allowing transfer of receive data if the RXI interrupt request is
specified as a source of DTC activation beforehand. The RDRF flag is automatically cleared to 0
at data transfer by DTC. If an error occurs during reception, i.e., either the ORER or PER flag is
set to 1, a transmit/receive error interrupt (ERI) request is generated and the error flag must be
cleared. If an error occurs, DTC is not activated and receive data is skipped, therefore, the number
of bytes of receive data specified in DTC are transferred. Even if a parity error occurs and PER is
set to 1 in reception, receive data is transferred to RDR, thus allowing the data to be read.
The above flow also applies to the case in which RFU is activated by RDRF in SCI_0 and SCI_2.
Note: For operations in block transfer mode, see section 16.4, Operation in Asynchronous Mode.
interrupt request is generated if the RIE bit in SCR is set to 1. Clear the PER bit to 0 before the
next parity bit is sampled.
to have been received successfully, and the RDRF bit in SSR is set to 1. Here, an RXI interrupt
request is generated if the RIE bit in SCR is set.
RDRF
PER
Serial Data Reception (Except in Block Transfer Mode)
Ds
D0 D1 D2 D3 D4 D5 D6 D7 Dp DE
Figure 16.32 Data Re-transfer Operation in SCI Reception Mode
nth transfer frame
Section 16 Serial Communication Interface (SCI, IrDA, and CRC)
[2]
[1]
Ds D0 D1 D2 D3 D4 D5 D6 D7 Dp
Re-transfer frame
Rev. 3.00 Jan 25, 2006 page 453 of 872
(DE)
[4]
[3]
Ds D0 D1 D2 D3 D4
transfer frame
(n + 1) th
REJ09B0286-0300

Related parts for h8s-2158