cop87l88rg National Semiconductor Corporation, cop87l88rg Datasheet - Page 12

no-image

cop87l88rg

Manufacturer Part Number
cop87l88rg
Description
8-bit One-time Programmable Microcontroller With Kbytes Program Memory
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cop87l88rgV-XE
Manufacturer:
SPANSION
Quantity:
1 681
http
Figure 10 shows a block diagram of the timer in Input Cap-
Timers
The timer value gets copied over into the register when a
trigger event occurs on its corresponding pin Control bits
TxC3 TxC2 and TxC1 allow the trigger events to be speci-
fied either as a positive or a negative edge The trigger con-
dition for each input pin can be specified independently
The trigger conditions can also be programmed to generate
interrupts The occurrence of the specified trigger condition
on the TxA and TxB pins will be respectively latched into the
pending flags TxPNDA and TxPNDB The control flag
TxENA allows the interrupt on TxA to be either enabled or
disabled Setting the TxENA flag enables interrupts to be
generated when the selected trigger condition occurs on the
TxA pin Similarly the flag TxENB controls the interrupts
from the TxB pin
Underflows from the timer can also be programmed to gen-
erate interrupts Underflows are latched into the timer TxC0
pending flag (the TxC0 control bit serves as the timer under-
flow interrupt pending flag in the Input Capture mode) Con-
sequently the TxC0 control bit should be reset when enter-
ing the Input Capture mode The timer underflow interrupt is
enabled with the TxENA control flag When a TxA interrupt
occurs in the Input Capture mode the user must check both
the TxPNDA and TxC0 pending flags in order to determine
whether a TxA input capture or a timer underflow (or both)
caused the interrupt
ture mode
www national com
(Continued)
12
TIMER CONTROL FLAGS
The timers T1 T2 and T3 have indentical control structures
The control bits and their functions are summarized below
TxC0
TxPNDA Timer Interrupt Pending Flag
TxPNDB Timer Interrupt Pending Flag
TxENA
TxENB
TxC3
TxC2
TxC1
FIGURE 10 Timer in Input Capture Mode
Timer Start Stop control in Modes 1 and 2
(Processor Independent PWM and External
Event Counter) where 1
Timer Underflow Interrupt Pending Flag in
Mode 3 (Input Capture)
Timer Interrupt Enable Flag
Timer Interrupt Enable Flag
1
0
Timer mode control
Timer mode control
Timer mode control
e
e
Timer Interrupt Enabled
Timer Interrupt Disabled
e
Start 0
TL DD12860 – 12
e
Stop

Related parts for cop87l88rg