z86c9216vsc ZiLOG Semiconductor, z86c9216vsc Datasheet - Page 45

no-image

z86c9216vsc

Manufacturer Part Number
z86c9216vsc
Description
Ir Microcontroller
Manufacturer
ZiLOG Semiconductor
Datasheet
Zilog
T16 Demodulation Mode
The user should program TC16L and TC16H to %FF. After
T16 is enabled, when the first edge (rising, falling, or both
depending on CTR1 D5, D4) is detected, T16 captures
HI16 and LO16 reloads and begins counting.
If D6 of CTR2 is 0: When a subsequent edge (rising, fall-
ing, or both depending on CTR1 D5, D4) is detected during
counting, the current count in T16 is one's complemented
and put into HI16 and LO16. When data is captured, one
of the edge detect status bits (CTR1 D1, D0) is set and an
interrupt is generated if enabled (CTR2 D2). T16 is loaded
with %FFFF and starts again.
DS97LVO0900
T16_OUT
“Counter Enable” Command,
T16_OUT Switches To Its
Initial Value (CTR1 D0)
“Counter Enable” Command,
T16_OUT Switches To Its
Initial Value (CTR1 D0)
TC16H*256+TC16L
Figure 30. T16_OUT in Single-Pass Mode
Figure 31. T16_OUT in Modulo-N Mode
P R E L I M I N A R Y
T16_OUT Toggles,
Time-Out Interrupt
TC16H*256+TC16L Counts
If D6 of CTR2 is 1: T16 ignores the subsequent edges in
the input signal and continues counting down. A time out
of T8 will cause T16 to capture its current value and gen-
erate an interrupt if enabled (CTR2, D2). In this case, T16
does not reload and continues counting. If D6 bit of CTR2
is toggled (by writing a 0 then a 1 to it), T16 will capture and
reload on the next edge (rising, falling, or both depending
on CTR1 D5, D4) but continue to ignore subsequent edg-
es.
Should T16 reach 0, it continues counting from %FFFF;
meanwhile, a status bit (CTR2 D5) is set and an interrupt
time-out can be generated if enabled (CTR2 D1).
TC16H*256+TC16L
T16_OUT Toggles,
Time-Out Interrupt
T16_OUT Toggles,
Time-Out Interrupt
Z86C72/C92/L72/L92
TC16H*256+TC16L
IR Microcontroller
6-45
1

Related parts for z86c9216vsc