CTR2 (D)%02: Counter/Timer16 Control Register.
Z86E72/E73
OTP IR Microcontrollers
Field
Bit Position
T16_Enable
7-------
R
W
Submode/Modulo-N
-6------
R/W
Time_Out
--5-----
T16 _Clock
---43---
Capture_INT_Mask
-----2--
Counter_INT_Mask
P35_Out
------1-
-------0
Note: * Indicates the value upon Power-On Reset.
R
W
R/W
R/W
R/W
R/W
Value
0*
Description
Counter Disabled
1
1
Counter Enabled
0
Stop Counter
1
Enable Counter
Transmit Mode
0
Modulo-N
1
Single Pass
Demodulation Mode
0
T16 Recognizes Edge
1
T16 Does Not Recognize Edge
0
No Counter Time-Out
1
Counter Time-Out Occurred
0
No Effect
1
Reset Flag to 0
00
SCLK
01
SCLK/2
10
SCLK/4
11
SCLK/8
0
Disable Data Capture Int.
1
Enable Data Capture Int.
0
Disable Time-Out Int.
1
Enable Time-Out Int.
0*
P35 as Port Output
1
T16 Output on P35
CTR2 Description
T16_Enable. This field enables T16 when set to 1.
Single/Modulo-N. In Transmit Mode, when set to 0, the
counter reloads the initial value when terminal count is
reached. When set to 1, the counter stops when the termi-
nal count is reached.
In Demodulation Mode, when set to 0 , T16 captures and
reloads on detection of all the edges; when set to 1, T16
captures and detects on the first edge, but ignores the sub-
sequent edges. For details, see the description of T16 De-
modulation Mode.
Time_Out. This bit is set when T16 times out (terminal
count reached). In order to reset it, a 1 should be written to
this location.
T16_Clock. Defines the frequency of the input signal to
Counter/Timer16.
Capture_INT_Mask. Set this bit to allow interrupt when
data is captured into LO16 and HI16.
Counter_INT_Mask. Set this bit to allow interrupt when
T16 times out.
P35_Out. This bit defines whether P35 is used as a normal
output pin or T16 output.
DS96LVO1100
PRELIMINARY
1-35