![Hitachi H8/3008 Hardware Manual Download Page 405](http://html.mh-extra.com/html/hitachi/h8-3008/h8-3008_hardware-manual_140473405.webp)
389
1. Data write
TDR
TSR
(shift register)
Data 1
2. Transfer from TDR to TSR
Data 1
Data 1
Data remains in TDR
Data 1
3. Serial data output
Note: When the ERS flag is set, it should be cleared until transfer of the last bit (D7 in LSB-first
transmission, D0 in MSB-first transmission) of the retransmit data to be transmitted next has
been completed.
In case of normal transmission: TEND flag is set
In case of transmit error:
ERS flag is set
Steps 2 and 3 above are repeated until the
TEND flag is set.
I/O signal
output
Data 1
Figure 13.6 Relation Between Transmit Operation and Internal Registers
I/O data
When GM = 0
Guard time
DE
Ds
Da
Db
Dc
Dd
De
Df
Dg
Dh
Dp
12.5 etu
11.0 etu
When GM = 1
TXI (TEND
interrupt)
Figure 13.7 Timing of TEND Flag Setting
Receiving Serial Data: Data reception in smart card mode uses the same processing procedure as
for the normal SCI. Figure 13.8 shows a sample reception processing flowchart.
1. Perform smart card interface mode initialization as described in Initialization above.
2. Check that the ORER flag and PER flag are cleared to 0 in SSR. If either is set, perform the
appropriate receive error handling, then clear both the ORER and the PER flag to 0.
3. Repeat steps 2 and 3 until it can be confirmed that the RDRF flag is set to 1.
4. Read the receive data from RDR.
5. To continue receiving data, clear the RDRF flag to 0 and go back to step 2.
6. To end reception, clear the RE bit to 0.
Summary of Contents for H8/3008
Page 1: ...Hitachi 16 Bit Microcomputer H8 3008 Hardware Manual ADE 602 221 Rev 1 0 9 14 00 Hitachi Ltd ...
Page 4: ......
Page 17: ...xii ...
Page 70: ...54 ...
Page 114: ...98 ...
Page 154: ...138 ...
Page 314: ...298 ...
Page 412: ...396 ...
Page 496: ...480 ...