
NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 484 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
0101
Same as 0001, but when the down counter equals to 0, hardware will set TMRxIF (SC_INTSTS[5:3]) and
counter will re-load the CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) value. When the
next START bit is detected, counter will re-count until software clears CNTENx (SC_ALTCTL[7:5]).
When ACTSTSx (SC_ALTCTL[15:13]) = 1 software can change CNT (SC_TMRCTL0[23:0],
SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) value at any time. When the down counter equal to 0, it will reload
the new value of CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) and re-counting.
The time-out value will be CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) + 1.
0110
Same as 0010, but when the down counter equals to 0, it will set TMRxIF (SC_INTSTS[5:3]) and counter will
re-load the CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) value. When the next START
bit is detected, counter will re-count until software clears CNTENx (SC_ALTCTL[7:5]).
When ACTSTSx (SC_ALTCTL[15:13]) = 1, software can change CNT (SC_TMRCTL0[23:0],
SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) value at any time. When the down counter equals to 0, counter will
reload the new value of CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) and re-count.
The time-out value will be CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) + 1.
0111
The down counter started when the first START bit (reception or transmission) detected and ended when
software clears CNTENx (SC_ALTCTL[7:5]) bit. If next START bit detected, counter will reload the new value
of CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) and re-counting.
If the counter decreases to 0 before the next START bit detected, hardware will generate an interrupt to CPU.
The time-out value will be CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) + 1.
Start
Start counting when the first START bit detected after CNTENx (SC_ALTCTL[7:5]) set to 1.
End
Stop counting after CNTENx (SC_ALTCTL[7:5]) set to 0.
1000
The up counter starts when CNTENx (SC_ALTCTL[7:5]) enabled and ends when CNTENx (SC_ALTCTL[7:5])
disabled. This count value will be stored in CNTx (SC_TMRDAT0[23:0], SC_TMRDAT1_2[7:0],
SC_TMRDAT1_2[15:8]). In this mode, hardware cannot generate any interrupt to CPU. The real count value
will be CNTx (SC_TMRDAT0[23:0], SC_TMRDAT1_2[7:0], SC_TMRDAT1_2[15:8]) + 1.
Start
Start counting after CNTENx (SC_ALTCTL[7:5]) set to 1, and the start count value is 0
(hardware will ignore CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0])
value).
End
Stop counting after CNTENx (SC_ALTCTL[7:5]) set to 0 and the value stored to CNTx
(SC_TMRDAT0[23:0], SC_TMRDAT1_2[7:0], SC_TMRDAT1_2[15:8]) register.
1111
Down counter starts when software set CNTENx (SC_ALTCTL[7:5]) bit or any START bit been detected and
ends when software clears CNTENx (SC_ALTCTL[7:5]) bit. If next START bit detected, counter will reload the
new value of CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0]) and re-counting.
If the counter decreases to “0” before the next START bit be detected, hardware will generate an interrupt to
CPU. The time-out value will be CNT (SC_TMRCTL0[23:0], SC_TMRCTL1[7:0], SC_TMRCTL2[7:0])+1.
Start
Start count when the CNTENx (SC_ALTCTL[7:5])
set to “1” or any START bit (CNTENx
(SC_ALTCTL[7:5]) must be set) be detected.
End
Stop count after CNTENx (SC_ALTCTL[7:5])
set to “0”.
UART Mode
5.17.5.5
When the UARTEN (SC_UARTCTL[0]) bit set, the Smart Card Interface controller can also be
used as base UART function. The following is the program example for UART mode.
Program example:
1. Set UARTEN (SC_UARTCTL[0]) bit to enter UART mode.
2. Do software reset by setting RXRST (SC_ALTCTL[1]) and TXRST (SC_ALTCTL[0]) bit to
ensure that all state machine return idle state.
3.
Fill “0” to CONSEL (SC_CTL[5:4]) and AUTOCEN (SC_CTL[3]) field. (In UART mode, those
fields
must be “0”)