Download Print this page

Epson S1C31D50 Technical Instructions page 291

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

T16B Ch.n Counter Control Register
Register name
Bit
T16B_nCTL
15–9
8
7–6
5–4
3
2
1
0
Bits 15–9
Reserved
Bit 8
MAXBSY
This bit indicates whether data can be written to the T16B_nMC register or not.
1 (R): Busy status (cannot be written)
0 (R): Idle (can be written)
While this bit is 1, the T16B_nMC register is loading the MAX value. Data writing is
prohibited during this period.
Bits 7–6
Reserved
Bits 5–4
CNTMD[1:0]
These bits select the counter up/down mode. The count mode is configured with this
selection and the T16B_nCTL.ONEST bit setting (see Table 17.7.2).
Bit 3
ONEST
This bit selects the counter repeat/one-shot mode. The count mode is configured with
this selection and the T16B_nCTL.CNTMD[1:0] bit settings (see Table 17.7.2).
T16B_nCTL.CNTMD[1:0] bits
0x3
0x2
0x1
0x0
Bit 2
RUN
This bit starts/stops counting.
1 (W): Start counting
0 (W): Stop counting
1 (R): Counting
0 (R): Idle
By writing 1 to this bit, the counter block starts count operations. However, the
T16B_nCTL.MODEN bit must be set to 1 in conjunction with this bit or it must be set in
advance. While the timer is running, writing 0 to the T16B_nCTL.RUN bit stops count
operations. When the counter stops by the counter MAX/ZERO signal in one-shot mode,
this bit is automatically cleared to 0.
Bit 1
PRESET
This bit resets the counter.
1 (W):
0 (W):
1 (R):
0 (R):
In up mode or up/down mode, the counter is cleared to 0x0000 by writing 1 to this bit. In
17-26
Bit name
Initial
0x00
MAXBSY
0
0x0
CNTMD[1:0]
0x0
ONEST
0
RUN
0
PRESET
0
MODEN
0
Table 17.7.2 Count Mode
T16B_nCTL.ONEST bit = 1
One-shot up/down count mode
One-shot down count mode
One-shot up count mode
Reset
Ineffective
Resetting in progress
Resetting finished or normal operation
Seiko Epson Corporation
Reset
R/W
R
H0
R
R
H0
R/W
H0
R/W
H0
R/W
H0
R/W
H0
R/W
Count mode
T16B_nCTL.ONEST bit = 0
Reserved
Repeat up/down count mode
Repeat down count mode
Repeat up count mode
Remarks
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)

Advertisement

loading