參數(shù)資料
型號: A8351601
廠商: AMIC Technology Corporation
英文描述: Bar Code Reader
中文描述: 條碼閱讀器
文件頁數(shù): 17/44頁
文件大小: 439K
代理商: A8351601
A8351601 Series
(July, 2002, Version 1.0)
16
AMIC Technology, Inc.
Timer 2
Timer 2 is a 16-bit Timer/Counter present only in the
A8351601. This is a powerful addition to the other two just
discussed. Five extra special function registers are added
to accommodate Timer 2 which are: the timer registers,
TL2 and TH2, the timer control register, T2CON, and the
capture registers, RCAP2L and RCAP2H. Like Timers 0
and 1, it can operate either as a timer or as an event
counter, depending on the value of bit C/T2 in the Special
Function Register T2CON. Timer 2 has three operating
modes: capture, auto-reload, and baud rate generator,
which are selected by RCLK, TCLK, CP/
RL2
and TR2.
In the Capture Mode, the EXEN2 bit in T2CON selects two
options. If EXEN2=0, then Timer 2 is a 16-bit timer or
counter whose overflow sets bit TF2, the Timer 2 overflow
bit, which can be used to generate an interrupt. If
EXEN2=1, then Timer 2 performs the same way, but a 1-
to-0 transition at external input T2EX also causes the
current value in the Timer 2 registers, TL2 and TH2, to be
captured into the RCAP2L and RCAP2H registers,
respectively. In addition, the transition at T2EX sets the
EXF2 bit in T2CON, and EXF2, like TF2, can generate an
interrupt.
The Capture Mode is illustrated in Figure 6.
In the auto-reload mode, the EXEN2 bit in T2CON also
selects two options. If EXEN2 = 0, then when Timer 2 rolls
over it sets TF2 and also reloads the Timer 2 registers with
the 16-bit value in the RCAP2L and RCAP2H registers,
which are preset by software. If EXEN2 = 1, then Timer 2
performs the same way, but a 1-to-0 transition at external
input T2EX also triggers the 16-bit reload and sets EXF2.
The auto-reload mode is illustrated in Figure 7.
The baud rate generator mode is selected by RCLK = 1
and/or TCLK = 1. This mode is described in conjunction
with the serial port (Figure 8).
Figure 6. Timer 2 in Capature Mode
TIMER 2
INTERRUPT
OSC
DIVIDE 12
C/T2=0
T2 PIN
CONTROL
TR2
TL2
(8 BITS)
TF2
C/T2=1
TH2
(8 BITS)
RCAP2L
RCAP2H
EXF2
T2EX PIN
EXEN2
CAPTURE
CONTROL
TRANSITION
DETECTOR
相關PDF資料
PDF描述
A8351601-40 Bar Code Reader
A8423 LIN Bus Transceiver with Integrated Voltage Regulator
A8423KL LIN Bus Transceiver with Integrated Voltage Regulator
A8430 White LED Driver Constant Current Step-up Converter
A8430EEK White LED Driver Constant Current Step-up Converter
相關代理商/技術參數(shù)
參數(shù)描述
A8351601-40 制造商:AMICC 制造商全稱:AMIC Technology 功能描述:Bar Code Reader
A8351601F-40 制造商:AMICC 制造商全稱:AMIC Technology 功能描述:Bar Code Reader
A8351601L-40 制造商:AMICC 制造商全稱:AMIC Technology 功能描述:Bar Code Reader
A8351601SERIES 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Bar Code Reader
A83516-12 制造商:AMICC 制造商全稱:AMIC Technology 功能描述:8 Bit Microcontroller