NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
196
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed, distributed or reproduced without permission
from Winbond.
Table No.: 2005-W90P710-11-A
6. Configure
TOC[2~0]
in register
SCHI_TOC
with 3b’000. (change to mode 0).
7. Load
register
SCHI_TOIR0
with 0x78.
8. Configure
TCO[2~0]
in register
SCHI_TCO
with 3b’001.
9. If first character of ATR has not been received before the timeout interrupt, the card can be
considered as mute.
If the first character of the answer to reset is received befor the timeout interrupt, one should
check if the time between every received character is less than 9600 ETU. Timer with Mode 2 could
be used to check this.
10. Clear
TOC[2~0]
in register
SCHI_TOC
with 3b’000 to stop timer 0.
11. Load register
SCHI_TOIR1
with 0x2580. (9600 = 0x2580)
12. Configure
TOC[5~3]
in register
SCHI_TOC
with 3b’010.
13. During ATR transmission, if
TO1
in register
SCHI_SCSR
is set, a initial waiting time error has
been detected.
14. Once the complete ATR has been received, timer 1 have to be stopped.
16.3.2.2 WWT
During the reception phase of T=0 protocol, timer could be used to check Work Waiting Time
(WWT).
1. Load
SCHI_TOIR2
with the value of WWT(960 * WI * D), and
TCO[8~6]
in register
SCHI_TCO
with 3b’010 before receiving the first character.
2. If TO2 in register
SCHI_SCSR
is set, a timeout error has been detected and the card has to be
deactivated.
3. Clear
TCO[8~6]
in register
SCHI_TCO
after having received the last character from card.
16.3.3 Receiver
FIFO Data Time-out
Bit 7 (
RxTL1
) and Bit 6 (
RxTL2
) in register
SCHI_SCFR
are used to set the active threshold level
for the receiver FIFO. For example, if the active threshold level is set as 4 bytes, once there are at
least 4 data characters in the receiver FIFO, an interrupt is activated to notify host to read data from
FIFO.