欢迎访问ic37.com |
会员登录 免费注册
发布采购

W77C032A40DL 参数 Datasheet PDF下载

W77C032A40DL图片预览
型号: W77C032A40DL
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-BIT MICROCONTROLLER]
分类和应用: 微控制器
文件页数/大小: 78 页 / 547 K
品牌: WINBOND [ WINBOND ]
 浏览型号W77C032A40DL的Datasheet PDF文件第47页浏览型号W77C032A40DL的Datasheet PDF文件第48页浏览型号W77C032A40DL的Datasheet PDF文件第49页浏览型号W77C032A40DL的Datasheet PDF文件第50页浏览型号W77C032A40DL的Datasheet PDF文件第52页浏览型号W77C032A40DL的Datasheet PDF文件第53页浏览型号W77C032A40DL的Datasheet PDF文件第54页浏览型号W77C032A40DL的Datasheet PDF文件第55页  
W77C32/W77C032A
12. PROGRAMMABLE TIMERS/COUNTERS
The W77C032 has three 16-bit programmable timer/counters and one programmable Watchdog timer.
The Watchdog timer is operationally quite different from the other two timers.
12.1 Timer/Counters 0 & 1
The W77C032 has two 16-bit Timer/Counters. Each of these Timer/Counters has two 8 bit registers
which form the 16 bit counting register. For Timer/Counter 0 they are TH0, the upper 8 bits register,
and TL0, the lower 8 bit register. Similarly Timer/Counter 1 has two 8 bit registers, TH1 and TL1. The
two can be configured to operate either as timers, counting machine cycles or as counters counting
external inputs.
When configured as a “Timer”, the timer counts clock cycles. The timer clock can be programmed to
be thought of as 1/12 of the system clock or 1/4 of the system clock. In the “Counter” mode, the
register is incremented on the falling edge of the external input pin, T0 in case of Timer 0, and T1 for
Timer 1. The T0 and T1 inputs are sampled in every machine cycle at C4. If the sampled value is high
in one machine cycle and low in the next, then a valid high to low transition on the pin is recognized
and the count register is incremented. Since it takes two machine cycles to recognize a negative
transition on the pin, the maximum rate at which counting will take place is 1/24 of the master clock
frequency. In either the “Timer” or “Counter” mode, the count register will be updated at C3. Therefore,
in the “Timer” mode, the recognized negative transition on pin T0 and T1 can cause the count register
value to be updated only in the machine cycle following the one in which the negative edge was
detected.
The “Timer” or “Counter” function is selected by the “C/
T
” bit in the TMOD Special Function Register.
Each Timer/Counter has one selection bit for its own; bit 2 of TMOD selects the function for
Timer/Counter 0 and bit 6 of TMOD selects the function for Timer/Counter 1. In addition each
Timer/Counter can be set to operate in any one of four possible modes. The mode selection is done
by bits M0 and M1 in the TMOD SFR.
12.1.1 Time-base Selection
The W77C032 gives the user two modes of operation for the timer. The timers can be programmed to
operate like the standard 8051 family, counting at the rate of 1/12 of the clock speed. This will ensure
that timing loops on the W77C032 and the standard 8051 can be matched. This is the default mode of
operation of the W77C032 timers. The user also has the option to count in the turbo mode, where the
timers will increment at the rate of 1/4 clock speed. This will straight-away increase the counting
speed three times. This selection is done by the T0M and T1M bits in CKCON SFR. A reset sets these
bits to 0, and the timers then operate in the standard 8051 mode. The user should set these bits to 1 if
the timers are to operate in turbo mode.
- 51 -
Publication Release Date: February 1, 2007
Revision A8