SN8P2604A
8-Bit Micro-Controller
6.6
6.7
6.8
6.9
INT0 (P0.0) INTERRUPT OPERATION......................................................................................... 63
INT1 (P0.1) INTERRUPT OPERATION......................................................................................... 64
T0 INTERRUPT OPERATION ....................................................................................................... 65
TC1 INTERRUPT OPERATION..................................................................................................... 66
6.10 MULTI-INTERRUPT OPERATION............................................................................................... 67
7
8
I/O PORT ................................................................................................................................................ 68
7.1
7.2
7.3
7.4
I/O PORT MODE ............................................................................................................................. 68
I/O PULL UP REGISTER ................................................................................................................ 69
I/O OPEN-DRAIN REGISTER........................................................................................................ 70
I/O PORT DATA REGISTER.......................................................................................................... 71
TIMERS .................................................................................................................................................. 72
8.1
8.2
8.2.1
WATCHDOG TIMER...................................................................................................................... 72
TIMER 0 (T0)................................................................................................................................... 74
OVERVIEW............................................................................................................................. 74
T0M MODE REGISTER ......................................................................................................... 74
T0C COUNTING REGISTER................................................................................................. 75
T0 TIMER OPERATION SEQUENCE................................................................................... 76
TIMER/COUNTER 1 (TC1) ............................................................................................................ 77
OVERVIEW............................................................................................................................. 77
TC1M MODE REGISTER....................................................................................................... 78
TC1C COUNTING REGISTER .............................................................................................. 79
TC1R AUTO-LOAD REGISTER............................................................................................ 80
TC1 CLOCK FREQUENCY OUTPUT (BUZZER)................................................................ 81
TC1 TIMER OPERATION SEQUENCE................................................................................ 82
TC1 TIMER NOTICE.............................................................................................................. 83
PWM1 MODE.................................................................................................................................. 83
OVERVIEW............................................................................................................................. 84
TC1IRQ AND PWM DUTY.................................................................................................... 85
PWM PROGRAM EXAMPLE................................................................................................ 86
PWM1 DUTY CHANGING NOTICE..................................................................................... 87
8.2.2
8.2.3
8.2.4
8.3
8.3.1
8.3.2
8.3.3
8.3.4
8.3.5
8.3.6
8.3.7
8.4
8.4.1
8.4.2
8.4.3
8.4.4
9
INSTRUCTION TABLE ....................................................................................................................... 89
ELECTRICAL CHARACTERISTIC.............................................................................................. 90
10
10.1 ABSOLUTE MAXIMUM RATING................................................................................................ 90
10.2 ELECTRICAL CHARACTERISTIC............................................................................................... 90
11
12
DEVELOPMENT TOOL .................................................................................................................. 91
OTP PROGRAMMING PIN............................................................................................................. 91
SONiX TECHNOLOGY CO., LTD
Page 5
Version 0.3