SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 5
Version 1.1
6
6
6
INTERRUPT................................................................................................................................... 56
6.1 OVERVIEW..................................................................................................................................... 56
6.2
INTEN INTERRUPT ENABLE REGISTER .................................................................................. 57
6.3
INTRQ INTERRUPT REQUEST REGISTER................................................................................ 58
6.4
GIE GLOBAL INTERRUPT OPERATION.................................................................................... 59
6.5
PUSH, POP ROUTINE .................................................................................................................... 60
6.6
INT0 (P0.0) INTERRUPT OPERATION ........................................................................................ 61
6.7
INT1 (P0.1) INTERRUPT OPERATION ........................................................................................ 62
6.8
T0 INTERRUPT OPERATION ....................................................................................................... 63
6.9 TC1
INTERRUPT
OPERATION .................................................................................................... 64
6.10 MULTI-INTERRUPT
OPERATION............................................................................................... 65
7
7
7
I/O PORT ........................................................................................................................................ 66
7.1 I/O
PORT
MODE............................................................................................................................. 66
7.2
I/O PULL UP REGISTER................................................................................................................ 67
7.3 I/O
OPEN-DRAIN
REGISTER........................................................................................................ 68
7.4
I/O PORT DATA REGISTER ......................................................................................................... 69
8
8
8
TIMERS .......................................................................................................................................... 70
8.1 WATCHDOG
TIMER ..................................................................................................................... 70
8.2 TIMER
0
(T0)................................................................................................................................... 72
8.2.1
OVERVIEW .............................................................................................................................. 72
8.2.2
T0M MODE REGISTER........................................................................................................... 73
8.2.3
T0C COUNTING REGISTER................................................................................................... 74
8.2.4
T0 TIMER OPERATION SEQUENCE ..................................................................................... 75
8.2.5
T0 TIMER NOTICE .................................................................................................................. 76
8.3
TIMER/COUNTER 1 (TC1) ............................................................................................................ 77
8.3.1
OVERVIEW .............................................................................................................................. 77
8.3.2
TC1M MODE REGISTER ........................................................................................................ 78
8.3.3
TC1C COUNTING REGISTER ................................................................................................ 79
8.3.4
TC1R AUTO-LOAD REGISTER .............................................................................................. 80
8.3.5
TC1 CLOCK FREQUENCY OUTPUT (BUZZER) .................................................................. 81
8.3.6
TC1 TIMER OPERATION SEQUENCE .................................................................................. 82