参数资料
型号: T89C51AC2-RLTIM
厂商: Atmel
文件页数: 79/121页
文件大小: 0K
描述: IC 8051 MCU FLASH 32K 44VQFP
标准包装: 160
系列: 89C
核心处理器: 8051
芯体尺寸: 8-位
速度: 40MHz
连通性: UART/USART
外围设备: POR,PWM,WDT
输入/输出数: 34
程序存储器容量: 32KB(32K x 8)
程序存储器类型: 闪存
EEPROM 大小: 2K x 8
RAM 容量: 1.25K x 8
电压 - 电源 (Vcc/Vdd): 3 V ~ 5.5 V
数据转换器: A/D 8x10b
振荡器型: 外部
工作温度: -40°C ~ 85°C
封装/外壳: 44-LQFP
包装: 托盘
60
A/T89C51AC2
4127H–8051–02/08
Timer 1
Timer 1 is identical to Timer 0 excepted for Mode 3 which is a hold-count mode. The fol-
lowing comments help to understand the differences:
Timer 1 functions as either a Timer or event Counter in three modes of operation.
Figure 31 to Figure 33 show the logical configuration for modes 0, 1, and 2. Timer
1’s mode 3 is a hold-count mode.
Timer 1 is controlled by the four high-order bits of TMOD register (see Figure 40)
and bits 2, 3, 6 and 7 of TCON register (see Figure 39). TMOD register selects the
method of Timer gating (GATE1), Timer or Counter operation (C/T1#) and mode of
operation (M11 and M01). TCON register provides Timer 1 control functions:
overflow flag (TF1), run control bit (TR1), interrupt flag (IE1) and interrupt type
control bit (IT1).
Timer 1 can serve as the Baud Rate Generator for the Serial Port. Mode 2 is best
suited for this purpose.
For normal Timer operation (GATE1 = 0), setting TR1 allows TL1 to be incremented
by the selected input. Setting GATE1 and TR1 allows external pin INT1# to control
Timer operation.
Timer 1 overflow (count rolls over from all 1s to all 0s) sets the TF1 flag generating
an interrupt request.
When Timer 0 is in mode 3, it uses Timer 1’s overflow flag (TF1) and run control bit
(TR1). For this situation, use Timer 1 only for applications that do not require an
interrupt (such as a Baud Rate Generator for the Serial Port) and switch Timer 1 in
and out of mode 3 to turn it off and on.
It is important to stop Timer/Counter before changing mode.
Mode 0 (13-bit Timer)
Mode 0 configures Timer 1 as a 13-bit Timer, which is set up as an 8-bit Timer (TH1 reg-
ister) with a modulo-32 prescaler implemented with the lower 5 bits of the TL1 register
(see Figure 31). The upper 3 bits of TL1 register are ignored. Prescaler overflow incre-
ments TH1 register.
Mode 1 (16-bit Timer)
Mode 1 configures Timer 1 as a 16-bit Timer with TH1 and TL1 registers connected in
cascade (see Figure 32). The selected input increments TL1 register.
Mode 2 (8-bit Timer with Auto-
Reload)
Mode 2 configures Timer 1 as an 8-bit Timer (TL1 register) with automatic reload from
TH1 register on overflow (see Figure 33). TL1 overflow sets TF1 flag in TCON register
and reloads TL1 with the contents of TH1, which is preset by software. The reload
leaves TH1 unchanged.
Mode 3 (Halt)
Placing Timer 1 in mode 3 causes it to halt and hold its count. This can be used to halt
Timer 1 when TR1 run control bit is not available i.e. when Timer 0 is in mode 3.
Interrupt
Each Timer handles one interrupt source that is the timer overflow flag TF0 or TF1. This
flag is set every time an overflow occurs. Flags are cleared when vectoring to the Timer
interrupt routine. Interrupts are enabled by setting ETx bit in IEN0 register. This assumes
interrupts are globally enabled by setting EA bit in IEN0 register.
相关PDF资料
PDF描述
DSPIC33FJ16GS402-I/MM IC DSPIC MCU/DSP 16K 28-QFN
T89C5115-TISIM IC 8051 MCU FLASH 16K 28SOIC
PIC18F27J13-I/SP IC PIC MCU 128KB FLASH 28SPDIP
T89C5115-TDSIM IC 8051 MCU FLASH 16K 24SOIC
52893-2090 CONN FFC 20POS .50MM R/A ZIF SMD
相关代理商/技术参数
参数描述
T89C51AC2-RLTI-M 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit MCU with 32K bytes Flash, 10 bits A/D and EEPROM
T89C51AC2-SLSC-M 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit MCU with 32K bytes Flash, 10 bits A/D and EEPROM
T89C51AC2-SLSE-M 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit MCU with 32K bytes Flash, 10 bits A/D and EEPROM
T89C51AC2-SLSIM 功能描述:IC 8051 MCU FLASH 32K 44PLCC RoHS:否 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:89C 标准包装:9 系列:87C 核心处理器:8051 芯体尺寸:8-位 速度:40/20MHz 连通性:UART/USART 外围设备:POR,WDT 输入/输出数:32 程序存储器容量:32KB(32K x 8) 程序存储器类型:OTP EEPROM 大小:- RAM 容量:256 x 8 电压 - 电源 (Vcc/Vdd):4.5 V ~ 5.5 V 数据转换器:- 振荡器型:内部 工作温度:0°C ~ 70°C 封装/外壳:40-DIP(0.600",15.24mm) 包装:管件
T89C51AC2-SLSI-M 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit MCU with 32K bytes Flash, 10 bits A/D and EEPROM