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

SM89516BW44JP 参数 Datasheet PDF下载

SM89516BW44JP图片预览
型号: SM89516BW44JP
PDF下载: 下载PDF文件 查看货源
内容描述: SM89516B\n8位微控制器\n64KB闪存\n和1KB RAM的嵌入式 [SM89516B 8-Bit Micro-controller 64KB Flash & 1KB RAM embedded]
分类和应用: 闪存微控制器
文件页数/大小: 49 页 / 1596 K
品牌: SYNCMOS [ SYNCMOS TECHNOLOGIES,INC ]
 浏览型号SM89516BW44JP的Datasheet PDF文件第21页浏览型号SM89516BW44JP的Datasheet PDF文件第22页浏览型号SM89516BW44JP的Datasheet PDF文件第23页浏览型号SM89516BW44JP的Datasheet PDF文件第24页浏览型号SM89516BW44JP的Datasheet PDF文件第26页浏览型号SM89516BW44JP的Datasheet PDF文件第27页浏览型号SM89516BW44JP的Datasheet PDF文件第28页浏览型号SM89516BW44JP的Datasheet PDF文件第29页  
SM89516B
8-Bit Micro-controller
64KB Flash
& 1KB RAM embedded
6. Timer 0 and Timer 1
The SM89516B has three 16-bit timer/counter registers: Timer 0, Timer 1 and Timer 2. All can be configured for
counter or timer operations.
In timer mode, the Timer 0 register or Timer 1 register is incremented every machine cycles, due to 12 oscillator
periods in a machine cycle, the count rate is 1/12 of the oscillator frequency. If in 6T mode, the count rate is 1/6 of
the oscillator frequency.
In counter mode, the register is incremented when the falling edge is observed at the corresponding input pin T0 or
T1. Since it takes 2 machine cycles to recognize a 1-to-0 event, the maximum input count rate is 1/2 of the
oscillator frequency. There are no restrictions on the duty cycle, however to ensure proper recognition of 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. Two Special Function registers (TMOD and TCON)
are used to select the appropriate mode.
Mnemonic
TL0
TH0
TL1
TH1
TMOD
TCON
6.1
Description
Timer 0 , low byte
Timer 0 , high byte
Timer 1 , low byte
Timer 1 , high byte
Timer Mode Control
Timer/Counter
Control
Dir.
8Ah
8Ch
8Bh
8Dh
89h
88h
Bit 7
Bit 6
Bit 5
Timer 0 and 1
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RST
00H
00H
00H
00H
00H
00H
GATE
TF1
C/T
TR1
M1
TF0
TL0[7:0]
TH0[7:0]
TL1[7:0]
TH1[7:0]
M0
GATE
TR0
IE1
C/T
IT1
M1
IE0
M0
IT0
Timer/counter mode control register (TMOD)
Mnemonic: TMOD
7
6
5
GATE
C/T
M1
Timer 1
Address: 89h
0
Reset
M0
00h
4
M0
3
GATE
2
1
C/T
M1
Timer 0
GATE: If set, enables external gate control (pin INT0 or INT1 for Counter 0 or 1,
respectively). When INT0 or INT1 is high, and TRx bit is set (see TCON
register), a counter is incremented every falling edge on T0 or T1 input pin.
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.
M1
0
M0
0
Mode
Mode0
Function
13-bit counter/timer, with 5 lower bits in TL0 or
TL1 register and 8 bits in TH0 or TH1 register
(for Timer 0 and Timer 1, respectively). The 3
high order bits of TL0 and TL1 are hold at
zero.
16-bit counter/timer.
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
TLx overflows, a value from THx is copied to
TLx.
0
1
1
0
Mode1
Mode2
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M087
Ver A SM89516B 3/7/2014
- 25 -