SN8P1700
8-bit micro-controller build-in 12-bit ADC
OVERVIEW............................................................................................................................. 69
T0M REGISTER DESCRIPTION ............................................................................................ 69
T0C COUNTING REGISTER .................................................................................................. 70
T0 BASIC TIMER OPERATION SEQUENCE ......................................................................... 71
TIMER COUNTER 0 (TC0)......................................................................................................... 72
OVERVIEW............................................................................................................................. 72
TC0M MODE REGISTER........................................................................................................ 73
TC0C COUNTING REGISTER................................................................................................ 74
TC0R AUTO-LOAD REGISTER.............................................................................................. 75
TC0 TIMER COUNTER OPERATION SEQUENCE................................................................ 76
TC0 CLOCK FREQUENCY OUTPUT (BUZZER).................................................................... 78
TC0OUT FREQUENCY TABLE.................................................................................................. 79
TIMER COUNTER 1 (TC1)......................................................................................................... 81
OVERVIEW............................................................................................................................. 81
TC1M MODE REGISTER........................................................................................................ 82
TC1C COUNTING REGISTER................................................................................................ 83
TC1R AUTO-LOAD REGISTER.............................................................................................. 84
TC1 TIMER COUNTER OPERATION SEQUENCE................................................................ 85
TC1 CLOCK FREQUENCY OUTPUT (BUZZER).................................................................... 87
PWM FUNCTION DESCRIPTION .............................................................................................. 88
OVERVIEW............................................................................................................................. 88
PWM PROGRAM DESCRIPTION........................................................................................... 89
9
INTERRUPT..................................................................................................................... 90
OVERVIEW................................................................................................................................. 90
INTEN INTERRUPT ENABLE REGISTER ................................................................................. 91
INTRQ INTERRUPT REQUEST REGISTER.............................................................................. 91
INTERRUPT OPERATION DESCRIPTION................................................................................ 92
GIE GLOBAL INTERRUPT OPERATION ............................................................................... 92
INT0 (P0.0) INTERRUPT OPERATION .................................................................................. 93
INT1 (P0.1) INTERRUPT OPERATION .................................................................................. 93
INT2 (P0.2) INTERRUPT OPERATION .................................................................................. 94
T0 INTERRUPT OPERATION................................................................................................. 95
TC0 INTERRUPT OPERATION.............................................................................................. 96
TC1 INTERRUPT OPERATION.............................................................................................. 97
SIO INTERRUPT OPERATION............................................................................................... 98
MULTI-INTERRUPT OPERATION.......................................................................................... 99
SONiX TECHNOLOGY CO., LTD
Page 7
Revision 1.94