English
Language : 

SM59R16A2 Datasheet, PDF (26/67 Pages) SyncMOS Technologies,Inc – 8-Bit Micro-controller
SM59R16A2/SM59R08A2
8-Bit Micro-controller
64KB/32KB ISP Flash & 2KB RAM embedded
7 Timer 0 and Timer 1
SM59R16A2/SM59R08A2 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 12 machines cycles,
which means that it counts up after every 12 periods of the crystal or oscillator signal.
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 to ensure
proper recognition of 0 or 1 state, so an input should be stable for at least 1 machine cycle.
Four operating modes can be selected for Timer 0 and Timer 1. Two SFRs (TMOD and TCON) are
used to select the appropriate mode.
Mnemonic Description Direct Bit 7
TL0
TH0
TL1
TH1
TMOD
TCON
Timer 0 , low byte 8Ah
Timer 0 , high
byte
8Ch
Timer 1 , low byte 8Bh
Timer 1 , high
byte
8Dh
Timer Mode
Control
89h GATE
Timer/Counter
Control
88h TF1
Bit 6 Bit 5 Bit 4 Bit 3
Timer 0 and 1
TL0[7:0]
TH0[7:0]
TL1[7:0]
TH1[7:0]
C/T
M1
M0 GATE
TR1 TF0 TR0 IE1
Bit 2
C/T
IT1
Bit 1
M1
IE0
Bit 0 RESET
00h
00h
00h
00h
M0
00h
IT0
00h
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M034
26
Ver.B SM59R16A2/SM59R08A2 06/2009