參數(shù)資料
型號(hào): COP688CL
廠商: National Semiconductor Corporation
元件分類: 8位微控制器
英文描述: 8-Bit Microcontroller(8位微控制器)
中文描述: 8位微控制器(8位微控制器)
文件頁(yè)數(shù): 19/41頁(yè)
文件大小: 565K
代理商: COP688CL
Timers
(Continued)
ters. Each register acts in conjunction with a pin. The register
RxAacts in conjunction with the TxApin and the register RxB
acts in conjunction with the TxB pin.
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
condition 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 Tx-
ENA 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.
Figure 10 shows a block diagram of the timer in Input Cap-
ture mode.
TIMER CONTROL FLAGS
The timers T1 and T2 have indentical control structures. The
control bits and their functions are summarized below.
TxC0
Timer Start/Stop control in Modes 1 and 2 (Pro-
cessor Independent PWM and External Event
Counter), where 1 = Start, 0 = Stop
Timer Underflow Interrupt Pending Flag in
Mode 3 (Input Capture)
TxPNDA Timer Interrupt Pending Flag
TxPNDB Timer Interrupt Pending Flag
TxENA
Timer Interrupt Enable Flag
TxENB
Timer Interrupt Enable Flag
1 = Timer Interrupt Enabled
0 = Timer Interrupt Disabled
TxC3
Timer mode control
TxC2
Timer mode control
TxC1
Timer mode control
DS009766-15
FIGURE 10. Timer in Input Capture Mode
C
www.national.com
19
相關(guān)PDF資料
PDF描述
COP888CL 8-Bit Microcontroller(8位微控制器)
COP988CL 8-Bit Microcontroller(8位微控制器)
COP684CL 8-Bit Microcontroller(8位微控制器)
COP884CL 8-Bit Microcontroller(8位微控制器)
COP984CL 8-Bit Microcontroller(8位微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
COP688CL-XXX/N 制造商:NSC 制造商全稱:National Semiconductor 功能描述:General Description
COP688CL-XXX/V 制造商:NSC 制造商全稱:National Semiconductor 功能描述:General Description
COP688CS 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS ROM Based Microcontrollers with 4k to 24k Memory, Comparators and USART
COP688CS-XXX/V 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|COP800 CPU|CMOS|LDCC|44PIN|PLASTIC
COP688EB 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS ROM Based Microcontrollers with 8k Memory, CAN Interface, 8-Bit A/D, and USART