参数资料
型号: COP820CJMHD-2
元件分类: 8位微控制器
英文描述: 8-BIT MICROCONTROLLER
中文描述: 8位微控制器
文件页数: 8/26页
文件大小: 352K
代理商: COP820CJMHD-2
Functional Description (Continued)
MODE 1. TIMER WITH AUTO-LOAD REGISTER
In this mode of operation, the timer T1 counts down at the in-
struction cycle rate. Upon underflow the value in the register
R1 gets automatically reloaded into the timer which contin-
ues to count down. The timer underflow can be programmed
to interrupt the microcontroller. A bit in the control register
CNTRL enables the TIO (G3) pin to toggle upon timer under-
flows. This allow the generation of square-wave outputs or
pulse width modulated outputs under software control. (See
Figure 8)
MODE 2. EXTERNAL COUNTER
In this mode, the timer T1 becomes a 16-bit external event
counter. The counter counts down upon an edge on the TIO
pin. Control bits in the register CNTRL program the counter
to decrement either on a positive edge or on a negative
edge. Upon underflow the contents of the register R1 are au-
tomatically copied into the counter. The underflow can also
be programmed to generate an interrupt. (See
Figure 8)
MODE 3. TIMER WITH CAPTURE REGISTER
Timer T1 can be used to precisely measure external fre-
quencies or events in this mode of operation. The timer T1
counts down at the instruction cycle rate. Upon the occur-
rence of a specified edge on the TIO pin the contents of the
timer T1 are copied into the register R1. Bits in the control
register CNTRL allow the trigger edge to be specified either
as a positive edge or as a negative edge. In this mode the
user can elect to be interrupted on the specified trigger edge.
(See
Figure 9.)
TABLE 5. Timer Operating Modes
CNTRL
Bits
765
Operation Mode
T Interrupt
Timer
Counts
On
0 0 0
External Counter W/Auto-Load Reg.
Timer Underflow
TIO Pos. Edge
0 0 1
External Counter W/Auto-Load Reg.
Timer Underflow
TIO Neg. Edge
0 1 0
Not Allowed
0 1 1
Not Allowed
1 0 0
Timer W/Auto-Load Reg.
Timer Underflow
t
C
1 0 1
Timer W/Auto-Load Reg./Toggle TIO Out
Timer Underflow
t
C
1 1 0
Timer W/Capture Register
TIO Pos. Edge
t
C
1 1 1
Timer W/Capture Register
TIO Neg. Edge
t
C
DS009103-13
FIGURE 7. MICROWIRE/PLUS Application
COP820C/COP840C
www.national.com
16
相关PDF资料
PDF描述
COP822CJMHD-2 8-BIT MICROCONTROLLER
COP842CMHD-1 8-BIT MICROCONTROLLER
COP842CMHD-2 8-BIT MICROCONTROLLER
COP842CMHD-3 8-BIT MICROCONTROLLER
COP8720CV 8-BIT MICROCONTROLLER
相关代理商/技术参数
参数描述
COP820CJMHEA-2 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
COP820CJ-XXX/M 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
COP820CJ-XXX/N 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
COP820CJ-XXX/WM 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
COP820CP-1 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller