SyncMOS Technologies International, Inc.
SM5964A
8-Bit Micro-controller
With 64KB ISP Flash & TWSI & PWM & 1KB RAM embedded
ETWSI: When set to ‘1’, enable the TWSI interrupt.
IFR ($AAH)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
TWSIIF
TWSIIF: When set to ‘1’, enable the TWSI interrupt flag.
TCON ($88H)
Bit7
TF1
Bit6
TR1
Bit5
TF0
Bit4
TR0
Bit3
IE1
Bit2
IT1
Bit1
IE0
Bit0
IT0
TF1: Timer 1 overflow flag.
TR1: Timer 1 run control bit.
TF0: Timer 0 overflow flag.
TR0: Timer 0 run control bit.
IE1: External Interrupt 1 edge flag.
IT1: Interrupt 1 type control bit.
IE0: External Interrupt 0 edge flag.
IT0: Interrupt 0 type control bit.
TMOD ($89H)
Bit7
GATE
Bit6
C/T
Bit5
M1
Bit4
M0
Bit3
GATE
Bit2
C/T
Bit1
M1
Bit0
M0
Note: High 4 bits are Timer1, Low 4 bits are Timer0.
GATE: Gating control when set. Timer/Counter “x” is enabled only while “INTx” pin is high and “TRx” control
pin is set. when cleared Timer “x” is enabled whenever “TRx” control bit is set.
C/T:
Timer or Counter Selector cleared for Timer operation (input from in=ternal system clock.) Set for Counter
operation (input from “Tx” input pin).
M1 M0 Mode OPERATING
0
0
1
0
1
0
0
1
2
13-bit Timer Mode.
8-bit Timer/Counter THz with TLx as 5-bit prescaler.
16-bit Timer Mode.
16-bit Timer/Counters THx and TLx are cascaded; there is no prescaler.
8-bit Auto Reload.
8-bit auto-reload Timer/Counter THx holds a value which is to be reloaded into TLx each time
it overflows.
1
1
3
Split Timer Mode
(Timer 0) TL0 is an 8-bit Timer/Counter controlled by the standard Timer 0 control bits. TH0
is an 8-bit timer only controlled by Timer 1 control bits.
(Timer 1) Timer/Counter 1 stopped.
IP ($B8H)
Bit7
Bit6
Bit5
PT2
Bit4
PS0
Bit3
PT1
Bit2
PX1
Bit1
PT0
Bit0
PX0
PT2: Timer2 interrupt priority.
PS0: UART interrupts priority.
PT1: Timer1 interrupt priority.
PX1: external interrupt 1 priority.
PT0: Timer0 interrupt priority.
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.3 SM5964A 10/2006
25