17 16-BIT PWM TIMERS (T16B)
17-26
Seiko Epson Corporation
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)
Bits 15–0 TC[15:0]
The current counter value can be read out through these bits.
T16B Ch.
n
Counter Status Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16B_nCS
15–8 –
0x00
–
R
–
7
CAPI5
0
H0
R
6
CAPI4
0
H0
R
5
CAPI3
0
H0
R
4
CAPI2
0
H0
R
3
CAPI1
0
H0
R
2
CAPI0
0
H0
R
1
UP_DOWN
1
H0
R
0
BSY
0
H0
R
Bits 15–8 Reserved
Bit 7
CAPI5
Bit 6
CAPI4
Bit 5
CAPI3
Bit 4
CAPI2
Bit 3
CAPI1
Bit 2
CAPI0
These bits indicate the signal level currently input to the CAP
nm
pin.
1 (R):
Input signal = High level
0 (R):
Input signal = Low level
The following shows the correspondence between the bit and the CAP
nm
pin:
T16B_
n
CS.CAPI5 bit: CAP
n
5 pin
T16B_
n
CS.CAPI4 bit: CAP
n
4 pin
T16B_
n
CS.CAPI3 bit: CAP
n
3 pin
T16B_
n
CS.CAPI2 bit: CAP
n
2 pin
T16B_
n
CS.CAPI1 bit: CAP
n
1 pin
T16B_
n
CS.CAPI0 bit: CAP
n
0 pin
Note: The configuration of the T16B_nCS.CAPIm bits depends on the model. The bits corre-
sponding to the CAPnm pins that do not exist are read-only bits and are always fixed at 0.
Bit 1
UP_DOWN
This bit indicates the currently set count direction.
1 (R):
Count up
0 (R):
Count down
Bit 0
BSY
This bit indicates the counter operating status.
1 (R):
Running
0 (R):
Idle