SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 4
Version 2.0
4.3.3
EXTERNAL HIGH-SPEED OSCILLATOR ........................................................................................................ 45
4.3.4
EXTERNAL OSCILLATOR APPLICATION CIRCUIT ..................................................................................... 45
4.4
SYSTEM
LOW-SPEED
CLOCK .................................................................................................................................... 46
4.5
OSCM
REGISTER .......................................................................................................................................................... 47
4.6
SYSTEM
CLOCK
MEASUREMENT ............................................................................................................................ 47
4.7
SYSTEM
CLOCK
TIMING ............................................................................................................................................ 48
5
55
SYSTEM OPERATION MODE ............................................................................................................................................ 51
5.1
OVERVIEW .................................................................................................................................................................... 51
5.2
NORMAL
MODE ........................................................................................................................................................... 52
5.3
SLOW
MODE ................................................................................................................................................................. 52
5.4
POWER
DOWN
MODE ................................................................................................................................................. 52
5.5
GREEN
MODE ............................................................................................................................................................... 53
5.6
OPERATING
MODE
CONTROL
MACRO ................................................................................................................... 54
5.7
WAKEUP ........................................................................................................................................................................ 55
5.7.1
OVERVIEW .......................................................................................................................................................... 55
5.7.2
WAKEUP TIME .................................................................................................................................................... 55
5.7.3
P1W WAKEUP CONTROL REGISTER .............................................................................................................. 56
6
66
INTERRUPT ........................................................................................................................................................................... 57
6.1
OVERVIEW .................................................................................................................................................................... 57
6.2
INTEN
INTERRUPT
ENABLE
REGISTER .................................................................................................................. 58
6.3
INTRQ
INTERRUPT
REQUEST
REGISTER ................................................................................................................ 59
6.4
GIE
GLOBAL
INTERRUPT
OPERATION .................................................................................................................... 60
6.5
PUSH,
POP
ROUTINE .................................................................................................................................................... 61
6.6
EXTERNAL
INTERRUPT
OPERATION
(INT0) .......................................................................................................... 62
6.7
T0
INTERRUPT
OPERATION ....................................................................................................................................... 63
6.8
TC0
INTERRUPT
OPERATION .................................................................................................................................... 64
6.9
ADC
INTERRUPT
OPERATION ................................................................................................................................... 65
6.10
COMPARATOR
INTERRUPT
OPERATION
(CMP0~CMP2) ..................................................................................... 66
6.11
MULTI-INTERRUPT
OPERATION .............................................................................................................................. 67
7
77
I/O PORT ................................................................................................................................................................................. 68
7.1
OVERVIEW .................................................................................................................................................................... 68
7.2
I/O
PORT
MODE ............................................................................................................................................................ 69
7.3
I/O
PULL
UP
REGISTER ............................................................................................................................................... 70
7.4
I/O
PORT
DATA
REGISTER ......................................................................................................................................... 71
7.5
PORT
4
ADC
SHARE
PIN .............................................................................................................................................. 72
8
88
TIMERS ................................................................................................................................................................................... 75
8.1
WATCHDOG
TIMER ..................................................................................................................................................... 75
8.2
T0
8-BIT
BASIC
TIMER ................................................................................................................................................ 77
8.2.1
OVERVIEW .......................................................................................................................................................... 77
8.2.2
T0 TIMER OPERATION ...................................................................................................................................... 77
8.2.3
T0M MODE REGISTER ....................................................................................................................................... 78
8.2.4
T0C COUNTING REGISTER ............................................................................................................................... 78
8.2.5
T0 TIMER OPERATION EXPLAME................................................................................................................... 79
8.3
TC0
8-BIT
TIMER/COUNTER ...................................................................................................................................... 80
8.3.1
OVERVIEW .......................................................................................................................................................... 80
8.3.2
TC0 TIMER OPERATION .................................................................................................................................... 81
8.3.3
PULSE WIDTH MODULATION (PWM) ............................................................................................................ 82
8.3.4
TC0 Pulse Generator Function ............................................................................................................................... 83
8.3.5
TC0M MODE REGISTER .................................................................................................................................... 85
8.3.6
TC0C COUNTING REGISTER ............................................................................................................................ 85
8.3.7
TC0R AUTO-RELOAD REGISTER .................................................................................................................... 86
8.3.8
TC0D PWM DUTY REGISTER ........................................................................................................................... 86
8.3.9
TC0 TIMER OPERATION EXPLAME ................................................................................................................ 87
9
99
ANALOG COMPARAOTR 0 ................................................................................................................................................ 89
9.1
OVERVIEW .................................................................................................................................................................... 89
9.2
NORMAL
COMPARATOR
MODE ............................................................................................................................... 90
9.3
COMPARATOR
0
SPECIAL
FUCNITON ..................................................................................................................... 92
9.4
COMPARATOR
MODE
REGISTER ............................................................................................................................. 93
9.5
COMPARATOR
APPLICATION
NOTICE ................................................................................................................... 93
9.6
COMPARATOR
0
OPERATION
EXPLAME ................................................................................................................ 94
1
11
0
00
ANALOG COMPARAOTR 1 ........................................................................................................................................... 95
10.1
OVERVIEW .................................................................................................................................................................... 95