Section 15 Smart Card Interface
Rev. 5.00 May 29, 2006 page 433 of 698
REJ09B0146-0500
Table 15.7
Register Set Values and SCK
φφφφ
Pin
Register Value
SCK Pin
Setting
SMIF
C/
A
A
A
A
CKE1
CKE0
Output
State
1
0
0
0
Port
Determined by setting of port register
SCP1MD1 and SCP1MD0 bits
1
*
1
1
0
0
1
SCK0 (serial clock) output state
1
1
0
0
Low output
Low output state
2
*
2
1
1
0
1
SCK0 (serial clock) output state
1
1
1
0
High output
High output state
3
*
2
1
1
1
1
SCK0 (serial clock) output state
Notes: 1. The SCK0 output state changes as soon as the CKE0 bit is modified. The CKE1 bit
should be cleared to 0.
2. The clock duty remains constant despite stopping and starting of the clock by
modification of the CKE0 bit.
15.4.6
Data Transmission and Reception
Initialization: Initialize the SCI using the following procedure before sending or receiving data.
Initialization is also required for switching from transmit mode to receive mode or from receive
mode to transmit mode. Figure 15.5 shows an example of initialization process flowchart.
1. Clear TE and RE in SCSCR to 0.
2. Clear error flags FER/ERS, PER, and ORER to 0 in SCSSR.
3. Set the C/
A
bit, parity bit (O/
E
bit), and baud rate generator select bits (CKS1 and CKS0 bits)
in SCSMR. At this time also clear the CHR and MP bits to 0 and set the STOP and PE bits to
1.
4. Set the SMIF, SDIR, and SINV bits in SCSCMR. When the SMIF bit is set to 1, the TxD and
RxD pins both switch from ports to SCI pins and become high impedance.
5. Set the value corresponding to the bit rate in SCBRR.
6. Set the clock source select bits (CKE1 and CKE0 bits) in SCSCR. Clear the TIE, RIE, TE, RE,
MPIE, and TEIE bits to 0. When the CKE0 bit is set to 1, a clock is output from the SCK
φ
pin.
7. After waiting at least 1 bit, set the TIE, RIE, TE, and RE bits in SCSCR. Do not set the TE and
RE bits simultaneously unless performing self-diagnosis.
Содержание SH7706 Series
Страница 8: ...Rev 5 00 May 29 2006 page viii of xlviii ...
Страница 160: ...Section 5 Cache Rev 5 00 May 29 2006 page 112 of 698 REJ09B0146 0500 ...
Страница 370: ...Section 11 Watchdog Timer WDT Rev 5 00 May 29 2006 page 322 of 698 REJ09B0146 0500 ...
Страница 532: ...Section 16 Serial Communication Interface with FIFO SCIF Rev 5 00 May 29 2006 page 484 of 698 REJ09B0146 0500 ...
Страница 554: ...Section 17 Pin Function Controller PFC Rev 5 00 May 29 2006 page 506 of 698 REJ09B0146 0500 ...
Страница 576: ...Section 18 I O Ports Rev 5 00 May 29 2006 page 528 of 698 REJ09B0146 0500 ...
Страница 614: ...Section 21 User Debugging Interface H UDI Rev 5 00 May 29 2006 page 566 of 698 REJ09B0146 0500 ...
Страница 746: ...Index Rev 5 00 May 29 2006 page 698 of 698 REJ09B0146 0500 ...
Страница 749: ...SH7706 Group Hardware Manual ...