参数资料
型号: P87CL884T
厂商: NXP Semiconductors N.V.
英文描述: TELX microcontrollers for CT0 handset/basestation applications
中文描述: TELX微控制器CT0手机/基站应用
文件页数: 13/32页
文件大小: 145K
代理商: P87CL884T
13
Philips Semiconductors
Product specification
TELX microcontrollers for CT0
handset/basestation applications
P8xCL883; P8xCL884
6.3
Timer/event counters
The P8xCL883/P8xCL884 contain three 16-bit timer/event
counters: Timer 0, Timer 1 and Timer 2 which can perform
the following functions:
Measure time intervals and pulse durations
Count events
Generate interrupt requests
Generate output on comparator match.
In the ‘timer’ mode the register is incremented every
machine cycle.
Since a machine cycle consists of minimum 6 oscillator
periods, the maximum count rate is
1
6
f
osc
.
In the ‘counter’ mode, the register is incremented in
response to a HIGH-to-LOW transition. Since it takes one
machine cycle (minimum 6 oscillator periods) to recognize
a HIGH-to-LOW transition, the maximum count rate is
1
6
f
osc
. To ensure a given level is sampled, it should be held
for at least one complete machine cycle.
Timer 0 and Timer 1 can be programmed independently to
operate in four modes:
Mode 0 8-bit timer or 8-bit counter each with
divide-by-32 prescaler.
Mode 1 16-bit time-interval or event counter.
Mode 2 8-bit time-interval or event counter with automatic
reload upon overflow.
Mode 3 Timer 0 establishes TL0 and TH0 as two
separate counters.
Note that the T0 input is only available on P8xCL883.
6.3.1
T
IMER
T2
Note that the timer T2 of the P8xCL883/P8xCL884
deviates from the timer T2 described in the “TELX
family”data sheet.
Timer T2 is a 16-bit timer/counter that can operate either
as a timer or as an event counter. These functions are
selected by the state of the C/T2 bit in the T2CON register.
Five operating modes are available:
Capture
Compare
Auto-reload
Compare with Auto-reload
Capture and Compare.
These modes are selected via the T2CON register.
6.3.1.1
Capture mode
In the Capture mode, two options may be selected by the
EXEN2 bit in T2CON:
If EXEN2 = 0, then Timer 2 is a 16-bit timer or counter
which upon overflowing sets the Timer 2 overflow bit
TF2, this may then be used to generate an interrupt.
If EXEN2 = 1, Timer 2 operates as described above but
with the additional feature that a HIGH-to-LOW
transition at external input T2EX causes the current
value in TL2 and TH2 to be captured into registers
RCAP2L and RCAP2H respectively. In addition, the
transition at T2EX causes the EXF2 bit in T2CON to be
set; this may also be used to generate an interrupt.
The Capture mode is shown in Fig.4.
6.3.1.2
Compare mode
In the Compare mode, each time timer T2 is incremented,
the contents of the compare registers COMP2H and
COMP2L is compared with the new counter value of
timer T2. When a match occurs, the interrupt flag COMP in
register T2CON and port bit P1.2 are toggled. The 16-bit
value held in these registers is preset by software. The first
toggle after a chip reset will set the flag COMP.
The Compare mode is shown in Fig.4.
6.3.1.3
Auto-reload mode
In the Auto-reload mode there are also two options
selected by the EXEN2 bit in T2CON:
If EXEN2 = 0, then when Timer 2 rolls over, it sets the
TF2 bit but also causes the Timer 2 registers to be
reloaded with the 16-bit value held in registers RCAP2L
and RCAP2H. The 16-bit value held in these registers is
preset by software.
If EXEN2 = 1, Timer 2 operates as described above but
with the additional feature that a HIGH-to-LOW
transition at external input T2EX will also trigger the
16-bit reload and set the EXF2 bit.
6.3.1.4
Compare with Auto-reload mode
The Auto-reload mode can also be used together with the
Compare mode. The Auto-reload modes are shown in
Fig.5.
6.3.1.5
Capture and Compare modes
The Capture and the Compare mode of timer T2 can be
used separately or simultaneously. The function is chosen
via the bits ECOMP, CP/RL2 and TR2 in register T2CON.
相关PDF资料
PDF描述
P8503BMG N-Channel Logic Level Enhancement Mode Field Effect Transistor (Preliminary)
P85C220-66 UV-Erasable/OTP PLD
D85C220-66 UV-Erasable/OTP PLD
D85C220-80 UV-Erasable/OTP PLD
D85C224-66 UV-Erasable/OTP PLD
相关代理商/技术参数
参数描述
P87L42 制造商:INTEL 制造商全称:Intel Corporation 功能描述:UNIVERSAL PERIPHERAL INTERFACE CHMOS 8-BIT SLAVE MICROCONTROLLER
P87LPC759 制造商:PHILIPS 制造商全称:NXP Semiconductors 功能描述:Low power, low price, low pin count (14 pin) microcontroller with 1 kbyte OTP
P87LPC759BN 制造商:PHILIPS 制造商全称:NXP Semiconductors 功能描述:Low power, low price, low pin count (14 pin) microcontroller with 1 kbyte OTP
P87LPC760 制造商:PHILIPS 制造商全称:NXP Semiconductors 功能描述:Low power, low price, low pin count (14 pin) microcontroller with 1 kbyte OTP
P87LPC760BDH 功能描述:8位微控制器 -MCU 80C51 1K/128 OTP RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT