SN8P2624
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 5
Version 0.3
6.4 GIE
GLOBAL
INTERRUPT
OPERATION .................................................................................... 60
6.5 PUSH,
POP
ROUTINE .................................................................................................................... 61
6.6 INT0
(P0.0)
INTERRUPT
OPERATION......................................................................................... 62
6.7 INT1
(P0.1)
INTERRUPT
OPERATION......................................................................................... 63
6.8 T0
INTERRUPT
OPERATION ....................................................................................................... 64
6.9 TC1
INTERRUPT
OPERATION..................................................................................................... 65
6.10 MULTI-INTERRUPT
OPERATION............................................................................................... 66
7
7
7
I/O PORT ................................................................................................................................................ 67
7.1 I/O
PORT
MODE ............................................................................................................................. 67
7.2 I/O
PULL
UP
REGISTER ................................................................................................................ 68
7.3 I/O
OPEN-DRAIN
REGISTER........................................................................................................ 69
7.4 I/O
PORT
DATA
REGISTER .......................................................................................................... 70
8
8
8
TIMERS .................................................................................................................................................. 71
8.1 WATCHDOG
TIMER...................................................................................................................... 71
8.2 TIMER
0
(T0) ................................................................................................................................... 73
8.2.1
OVERVIEW .............................................................................................................................. 73
8.2.2
T0M MODE REGISTER........................................................................................................... 73
8.2.3
T0C COUNTING REGISTER................................................................................................... 74
8.2.4
T0 TIMER OPERATION SEQUENCE ..................................................................................... 75
8.3 TIMER/COUNTER
0
(TC1) ............................................................................................................ 76
8.3.1
OVERVIEW .............................................................................................................................. 76
8.3.2
TC1M MODE REGISTER ........................................................................................................ 77
8.3.3
TC1C COUNTING REGISTER ................................................................................................ 78
8.3.4
TC1R AUTO-LOAD REGISTER .............................................................................................. 79
8.3.5
TC1 CLOCK FREQUENCY OUTPUT (BUZZER) .................................................................. 80
8.3.6
TC1 TIMER OPERATION SEQUENCE .................................................................................. 81
8.4 PWM1
MODE .................................................................................................................................. 82
8.4.1
OVERVIEW .............................................................................................................................. 82
8.4.2
TCxIRQ and PWM Duty ........................................................................................................... 83
8.4.3
PWM Duty with TCxR Changing.............................................................................................. 84
8.4.4
PWM PROGRAM EXAMPLE .................................................................................................. 85
9
9
9
INSTRUCTION TABLE ....................................................................................................................... 86
1
1
1
0
0
0
ELECTRICAL CHARACTERISTIC .............................................................................................. 87
10.1 ABSOLUTE
MAXIMUM
RATING ................................................................................................ 87
10.2 ELECTRICAL
CHARACTERISTIC............................................................................................... 87
10.3 CHARACTERISTIC
GRAPHS ....................................................................................................... 88
1
1
1
1
1
1
OTP PROGRAMMING PIN............................................................................................................. 89