SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 7
Revision 1.93
WATCHDOG TIMER (WDT) ..................................................................................................... 112
BASIC TIMER 0 (T0) ................................................................................................................ 113
OVERVIEW ........................................................................................................................... 113
T0M REGISTER DESCRIPTION .......................................................................................... 113
T0C COUNTING REGISTER ................................................................................................ 114
T0 BASIC TIMER OPERATION SEQUENCE ....................................................................... 115
TIMER COUNTER 0 (TC0) ....................................................................................................... 116
OVERVIEW ........................................................................................................................... 116
TC0M MODE REGISTER...................................................................................................... 117
TC0C COUNTING REGISTER.............................................................................................. 118
TC0R AUTO-LOAD REGISTER ............................................................................................ 119
TC0 TIMER COUNTER OPERATION SEQUENCE.............................................................. 120
TC0 CLOCK FREQUENCY OUTPUT (BUZZER).................................................................. 122
TC0OUT FREQUENCY TABLE ................................................................................................ 123
TIMER COUNTER 1 (TC1) ....................................................................................................... 125
OVERVIEW ........................................................................................................................... 125
TC1M MODE REGISTER...................................................................................................... 126
TC1C COUNTING REGISTER.............................................................................................. 127
TC1R AUTO-LOAD REGISTER ............................................................................................ 128
TC1 TIMER COUNTER OPERATION SEQUENCE.............................................................. 129
TC1 CLOCK FREQUENCY OUTPUT (BUZZER).................................................................. 131
PWM FUNCTION DESCRIPTION ............................................................................................ 132
OVERVIEW ........................................................................................................................... 132
PWM PROGRAM DESCRIPTION......................................................................................... 133
8
8
8
INTERRUPT................................................................................................................... 134
OVERVIEW............................................................................................................................... 134
INTEN INTERRUPT ENABLE REGISTER ............................................................................... 135
INTRQ INTERRUPT REQUEST REGISTER ............................................................................ 135
INTERRUPT OPERATION DESCRIPTION .............................................................................. 136
GIE GLOBAL INTERRUPT OPERATION ............................................................................. 136
INT0 (P0.0) INTERRUPT OPERATION ................................................................................ 137
INT1 (P0.1) INTERRUPT OPERATION ................................................................................ 137
INT2 (P0.2) INTERRUPT OPERATION ................................................................................ 138
T0 INTERRUPT OPERATION............................................................................................... 139
TC0 INTERRUPT OPERATION ............................................................................................ 140
TC1 INTERRUPT OPERATION ............................................................................................ 141