參數(shù)資料
型號(hào): 89LV55
廠商: Atmel Corp.
英文描述: 8-Bit Microcontroller with 20K Bytes Flash
中文描述: 8位閃存微控制器20,000字節(jié)
文件頁(yè)數(shù): 6/23頁(yè)
文件大?。?/td> 595K
代理商: 89LV55
AT89LV55
4-198
Table 2.
T2CON—Timer/Counter 2 Control Register
Timer 0 and 1
Timer 0 and 1 in the AT89LV55 operate the same way as
Timer 0 and Timer 1 in the AT89C51 and AT89C52. For
further information, see the Microcontroller Data Book, sec-
tion titled, “Timer Counters.”
Timer 2
Timer 2 is a 16-bit Timer/Counter that can operate as either
a timer or an event counter. The type of operation is
selected by bit C/T2 in the SFR T2CON (shown in Table 2).
Timer 2 has three operating modes: capture, auto-reload
(up or down counting), and baud rate generator. The
modes are selected by bits in T2CON, as shown in Table 3.
Timer 2 consists of two 8-bit registers, TH2 and TL2. In the
Timer function, the TL2 register is incremented every
machine cycle. Since a machine cycle consists of 12 oscil-
lator periods, the count rate is 1/12 of the oscillator fre-
quency.
In the Counter function, the register is incremented in
response to a 1-to-0 transition at its corresponding external
input pin, T2. In this function, the external input is sampled
during S5P2 of every machine cycle. When the samples
show a high in one cycle and a low in the next cycle, the
count is incremented. The new count value appears in the
register during S3P1 of the cycle following the one in which
the transition was detected. Since two machine cycles (24
oscillator periods) are required to recognize a 1-to-0 transi-
tion, the maximum count rate is 1/24 of the oscillator fre-
quency. To ensure that a given level is sampled at least
once before it changes, the level should be held for at least
one full machine cycle.
Table 3.
Timer 2 Operating Modes
T2CON Address = 0C8H
Reset Value = 0000 0000B
Bit Addressable
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
C/T2
CP/RL2
Bit
7
6
5
4
3
2
1
0
Symbol
Function
TF2
Timer 2 overflow flag set by a Timer 2 overflow and must be cleared by software. TF2 will not be set when either RCLK
= 1 or TCLK = 1.
EXF2
Timer 2 external flag set when either a capture or reload is caused by a negative transition on T2EX and EXEN2 = 1.
When Timer 2 interrupt is enabled, EXF2 = 1 will cause the CPU to vector to the Timer 2 interrupt routine. EXF2 must
be cleared by software. EXF2 does not cause an interrupt in up/down counter mode (DCEN = 1).
RCLK
Receive clock enable. When set, causes the serial port to use Timer 2 overflow pulses for its receive clock in serial port
Modes 1 and 3. RCLK = 0 causes Timer 1 overflow to be used for the receive clock.
TCLK
Transmit clock enable. When set, causes the serial port to use Timer 2 overflow pulses for its transmit clock in serial
port Modes 1 and 3. TCLK = 0 causes Timer 1 overflows to be used for the transmit clock.
EXEN2
Timer 2 external enable. When set, allows a capture or reload to occur as a result of a negative transition on T2EX if
Timer 2 is not being used to clock the serial port. EXEN2 = 0 causes Timer 2 to ignore events at T2EX.
TR2
Start/Stop control for Timer 2. TR2 = 1 starts the timer.
C/T2
Timer or counter select for Timer 2. C/T2 = 0 for timer function. C/T2 = 1 for external event counter (falling edge
triggered).
CP/RL2
Capture/Reload select. CP/RL2 = 1 causes captures to occur on negative transitions at T2EX if EXEN2 = 1. CP/RL2 =
0 causes automatic reloads to occur when Timer 2 overflows or negative transitions occur at T2EX when EXEN2 = 1.
When either RCLK or TCLK = 1, this bit is ignored and the timer is forced to auto-reload on Timer 2 overflow.
RCLK + TCLK
CP/RL2
TR2
MODE
0
0
1
16-bit Auto-Reload
0
1
1
16-bit Capture
1
X
1
Baud Rate
Generator
X
X
0
(Off)
相關(guān)PDF資料
PDF描述
89S8252 8-Bit Microcontroller with 8K Bytes Flash
8M052489 8m Class DC to AC Inverter
8T26A 8-Channel, 10-Bit ADC with I2C Compatible Interface in 20-Lead TSSOP; Package: TSSOP; No of Pins: 20; Temperature Range: Industrial
8T95 8-Channel, 10-Bit ADC with I2C Compatible Interface in 20-Lead TSSOP; Package: TSSOP; No of Pins: 20; Temperature Range: Industrial
8T96 High Speed Hex 3-State Buffers/Inverters
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
89M6KDGG-1NDG 制造商:Legacy Electronics Inc 功能描述:1GB ECC UNBUFFERED DDR333 - Bulk
89N5078 制造商:undefined 功能描述:
89N5083 制造商:SPC TECHNOL 功能描述:
89NF3R7 功能描述:線繞電阻器 - 透孔 50watt 3.7ohm 5% RoHS:否 制造商:Bourns 電阻:10 Ohms 容差:5 % 功率額定值:7 W 溫度系數(shù):200 PPM / C 系列:FW 端接類型:Axial 工作溫度范圍:- 55 C to + 155 C 尺寸:9.5 mm Dia. x 26 mm L 封裝:Ammo 產(chǎn)品:Power Resistors Wirewound High Energy
89NM1032 制造商: 功能描述: 制造商:undefined 功能描述: