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

71M6533H-IGT/F 参数 Datasheet PDF下载

71M6533H-IGT/F图片预览
型号: 71M6533H-IGT/F
PDF下载: 下载PDF文件 查看货源
内容描述: 电能计量IC [Energy Meter IC]
分类和应用: 模拟IC信号电路
文件页数/大小: 124 页 / 1997 K
品牌: TERIDIAN [ TERIDIAN SEMICONDUCTOR CORPORATION ]
 浏览型号71M6533H-IGT/F的Datasheet PDF文件第25页浏览型号71M6533H-IGT/F的Datasheet PDF文件第26页浏览型号71M6533H-IGT/F的Datasheet PDF文件第27页浏览型号71M6533H-IGT/F的Datasheet PDF文件第28页浏览型号71M6533H-IGT/F的Datasheet PDF文件第30页浏览型号71M6533H-IGT/F的Datasheet PDF文件第31页浏览型号71M6533H-IGT/F的Datasheet PDF文件第32页浏览型号71M6533H-IGT/F的Datasheet PDF文件第33页  
FDS_6533_6534_004  
71M6533/71M6534 Data Sheet  
1.3.7 Timers and Counters  
The 80515 has two 16-bit timer/counter registers: Timer 0 and Timer 1. These registers can be confi-  
gured for counter or timer operations.  
In timer mode, the register is incremented every machine cycle, i.e. it counts up once for every 12 periods of  
the MPU clock. In counter mode, the register is incremented when the falling edge is observed at the cor-  
responding input signal T0 or T1 (T0 and T1 are the timer gating inputs derived from certain DIO pins, see  
Section 1.4.7 Digital I/O). Since it takes 2 machine cycles to recognize a 1-to-0 event, the maximum input  
count rate is 1/2 of the clock frequency (CKMPU). There are no restrictions on the duty cycle, however to  
ensure proper recognition of the 0 or 1 state, an input should be stable for at least 1 machine cycle.  
Four operating modes can be selected for Timer 0 and Timer 1, as shown in Table 20 and Table 21. The  
TMOD Register, shown in Table 22, is used to select the appropriate mode. The timer/counter operation  
is controlled by the TCON Register, which is shown in Table 23. Bits TR1 (TCON[6]) and TR0 (TCON[4]) in  
the TCON register start their associated timers when set.  
Table 20: Timers/Counters Mode Description  
M1  
M0  
Mode  
Function  
13-bit Counter/Timer mode with 5 lower bits in the TL0 or TL1 regis-  
ter and the remaining 8 bits in the TH0 or TH1 register (for Timer 0  
and Timer 1, respectively). The 3 high order bits of TL0 and TL1 are  
held at zero.  
0
0
Mode 0  
0
1
1
0
Mode 1  
Mode 2  
16-bit Counter/Timer mode.  
8-bit auto-reload Counter/Timer. The reload value is kept in TH0 or  
TH1, while TL0 or TL1 is incremented every machine cycle. When  
TL(x) overflows, a value from TH(x) is copied to TL(x) (where x is 0  
for counter/timer 0 or 1 for counter/timer 1.  
1
1
Mode 3  
If Timer 1 M1 and M0 bits are set to 1, Timer 1 stops.  
If Timer 0 M1 and M0 bits are set to 1, Timer 0 acts as two indepen-  
dent 8-bit Timer/Counters.  
In Mode 3, TL0 is affected by TR0 and gate control bits, and sets the TF0 flag on overflow, while TH0  
is affected by the TR1 bit, and the TF1 flag is set on overflow.  
Table 21 specifies the combinations of operation modes allowed for Timer 0 and Timer 1.  
Table 21: Allowed Timer/Counter Mode Combinations  
Timer 1  
Mode 0  
YES  
Mode 1  
YES  
Mode 2  
YES  
Timer 0 - mode 0  
Timer 0 - mode 1  
Timer 0 - mode 2  
YES  
YES  
YES  
Not allowed  
Not allowed  
YES  
Table 22: TMOD Register Bit Description (SFR 0x89)  
Bit  
Symbol  
Function  
Timer/Counter 1:  
If set, enables external gate control (signal INT1). When INT1 is high,  
and the TR1 bit is set (see the TCON register), a counter is incremented  
every falling edge on T1 input signal  
TMOD[7]  
TMOD[6]  
Gate  
C/T  
Selects timer or counter operation. When set to 1, a counter operation is  
performed. When cleared to 0, the corresponding register will function as a  
timer.  
Selects the mode for Timer/Counter 1 as shown in Table 20.  
TMOD[5:4] M1:M0  
v1.1  
© 2007-2009 TERIDIAN Semiconductor Corporation  
29