SN8P2610 Series
8-Bit Micro-Controller
SN8P2610 Series
USER’S MANUAL
Preliminary V 1.3
SN8P2613
SN8P2612
SN8P2611
SONiX 8-Bit Micro-Controller
SONIX reserves the right to make change without further notice to any products herein to improve reliability, function or design. SONIX does not
assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent
rights nor the rights of others. SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical
implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product
could create a situation where personal injury or death may occur. Should Buyer purchase or use SONIX products for any such unintended or
unauthorized application. Buyer shall indemnify and hold SONIX and its officers, employees, subsidiaries, affiliates and distributors harmless against
all claims, cost, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use even if such claim alleges that SONIX was negligent regarding the design or manufacture of
the part.
SONiX TECHNOLOGY CO., LTD
Page 1
Version 1.3
SN8P2610 Series
8-Bit Micro-Controller
AMENDMENT HISTORY
Version
VER 0.1
VER 0.2
Date
Jan. 2005
Jun. 2005
Aug. 2005
Description
First issue
1. Add SN8P2611 item.
2. Add SN8P2611 programming pin mapping for Writer connection.
3. Add P-DIP 14 pins and SOP 14 pins package outline diagram.
1.
Remove Writer V2.5 information.
2.
ADD P92 Note. Use M2IDE V1.06 (or after version) to simulation.
3.
ADD P92 Note. Use 16M Hz Crystal to simulation internal 16M RC.
4.
ADD P92 Note. Use 16M Hz Crystal to programming with EZ-Writer.
5.
Modify P89 Internal Hihg RC.
1. ADD Brown-Out reset circuit.
2. Working Voltage vs. Frequency graphs.
1.
Modify Topr value.
2.
ADD IHRC curve.
1.
Modify T0 RTC interrupt service routine and T0IRQ operation description.
2.
Modify Brown-Out Reset description
3.
Remove power consumption(Pc)
4.
Remove Noise Filter Enable Working Voltage
5.
Modify PIN DESCRIPTIONS(P1 wakeup function)
6.
Modify IHRC_RTC code option description
7.
Remove High clock 32K mode
8.
Modify M2IDE 1.07
9.
Add Fcpu limitation by noise filter.
10. Modify ELECTRICAL CHARACTERISTIC.
11. Remove RTC function.
1.
1.
2.
3.
Modify Programming Pin Mapping
Add Marking Definition.
Modify ELECTRICAL CHARACTERISTIC.
Modify RST/P1.5/VPP PIN DISCRIPTION.
Nov.2005
VER 1.0
VER 1.1
Nov. 2005
Dec 2005
VER 1.2
VER 1.3
May 2005
Feb 2007
SONiX TECHNOLOGY CO., LTD
Page 2
Version 1.3
SN8P2610 Series
8-Bit Micro-Controller
Table of Content
AMENDMENT HISTORY ............................................................................................................................ 2
1
1
PRODUCT OVERVIEW......................................................................................................................... 7
1.1
1.2
1.3
1.4
1.5
2
2
FEATURES ........................................................................................................................................ 7
SYSTEM BLOCK DIAGRAM .......................................................................................................... 8
PIN ASSIGNMENT ........................................................................................................................... 9
PIN DESCRIPTIONS....................................................................................................................... 11
PIN CIRCUIT DIAGRAMS............................................................................................................. 12
CENTRAL PROCESSOR UNIT (CPU) .............................................................................................. 13
2.1
MEMORY MAP............................................................................................................................... 13
2.1.1
PROGRAM MEMORY (ROM) ................................................................................................. 13
2.1.1.1 RESET VECTOR (0000H) .................................................................................................. 14
2.1.1.2 INTERRUPT VECTOR (0008H)......................................................................................... 15
2.1.1.3 LOOK-UP TABLE DESCRIPTION.................................................................................... 17
2.1.1.4 JUMP TABLE DESCRIPTION ........................................................................................... 19
2.1.1.5 CHECKSUM CALCULATION........................................................................................... 21
2.1.2
CODE OPTION TABLE ........................................................................................................... 22
2.1.3
DATA MEMORY (RAM)........................................................................................................... 23
2.1.4
SYSTEM REGISTER................................................................................................................. 24
2.1.4.1 SYSTEM REGISTER TABLE ............................................................................................ 24
2.1.4.2 SYSTEM REGISTER DESCRIPTION ............................................................................... 24
2.1.4.3 BIT DEFINITION of SYSTEM REGISTER....................................................................... 25
2.1.4.4 ACCUMULATOR ............................................................................................................... 26
2.1.4.5 PROGRAM FLAG ............................................................................................................... 27
2.1.4.6 PROGRAM COUNTER....................................................................................................... 28
2.1.4.7 Y, Z REGISTERS................................................................................................................. 31
2.1.4.8 R REGISTERS ..................................................................................................................... 32
2.2
ADDRESSING MODE .................................................................................................................... 33
2.2.1
IMMEDIATE ADDRESSING MODE....................................................................................... 33
2.2.2
DIRECTLY ADDRESSING MODE .......................................................................................... 33
2.2.3
INDIRECTLY ADDRESSING MODE ...................................................................................... 33
2.3
STACK OPERATION...................................................................................................................... 34
2.3.1
2.3.2
2.3.3
3
3
OVERVIEW .............................................................................................................................. 34
STACK REGISTERS ................................................................................................................. 35
STACK OPERATION EXAMPLE............................................................................................. 36
RESET ..................................................................................................................................................... 37
SONiX TECHNOLOGY CO., LTD
Page 3
Version 1.3
SN8P2610 Series
8-Bit Micro-Controller
3.1
3.2
3.3
3.4
OVERVIEW..................................................................................................................................... 37
POWER ON RESET......................................................................................................................... 38
WATCHDOG RESET...................................................................................................................... 38
BROWN OUT RESET ..................................................................................................................... 39
BROWN OUT DESCRIPTION ................................................................................................. 39
THE SYSTEM OPERATING VOLTAGE DECSRIPTION........................................................ 40
3.4.1
3.4.2
3.4.3
BROWN OUT RESET IMPROVEMENT.................................................................................. 40
3.5
EXTERNAL RESET ........................................................................................................................ 43
3.6
EXTERNAL RESET CIRCUIT ....................................................................................................... 43
3.6.1
3.6.2
3.6.3
3.6.4
3.6.5
4
4
Simply RC Reset Circuit ........................................................................................................... 43
Diode & RC Reset Circuit ........................................................................................................ 44
Zener Diode Reset Circuit ........................................................................................................ 44
Voltage Bias Reset Circuit........................................................................................................ 45
External Reset IC...................................................................................................................... 46
SYSTEM CLOCK .................................................................................................................................. 47
4.1
4.2
4.3
4.4
OVERVIEW..................................................................................................................................... 47
CLOCK BLOCK DIAGRAM .......................................................................................................... 47
OSCM REGISTER ........................................................................................................................... 48
SYSTEM HIGH CLOCK ................................................................................................................. 49
4.4.1
INTERNAL HIGH RC............................................................................................................... 49
4.4.2
EXTERNAL HIGH CLOCK...................................................................................................... 49
4.4.2.1 CRYSTAL/CERAMIC......................................................................................................... 50
4.4.2.2 RC......................................................................................................................................... 50
4.4.2.3 EXTERNAL CLOCK SIGNAL........................................................................................... 51
4.5
SYSTEM LOW CLOCK .................................................................................................................. 52
4.5.1
5
5
SYSTEM CLOCK MEASUREMENT ........................................................................................ 53
SYSTEM OPERATION MODE ........................................................................................................... 54
5.1
5.2
5.3
OVERVIEW..................................................................................................................................... 54
SYSTEM MODE SWITCHING EXAMPLE ................................................................................... 55
WAKEUP ......................................................................................................................................... 57
OVERVIEW .............................................................................................................................. 57
WAKEUP TIME........................................................................................................................ 57
P1W WAKEUP CONTROL REGISTER ................................................................................... 57
5.3.1
5.3.2
5.3.3
6
6
INTERRUPT........................................................................................................................................... 58
6.1
6.2
6.3
6.4
OVERVIEW..................................................................................................................................... 58
INTEN INTERRUPT ENABLE REGISTER................................................................................... 58
INTRQ INTERRUPT REQUEST REGISTER ................................................................................ 59
GIE GLOBAL INTERRUPT OPERATION .................................................................................... 59
Page 4
SONiX TECHNOLOGY CO., LTD
Version 1.3
SN8P2610 Series
8-Bit Micro-Controller
6.5
6.6
6.7
6.8
6.9
6.10
7
7
PUSH, POP ROUTINE .................................................................................................................... 60
INT0 (P0.0) INTERRUPT OPERATION......................................................................................... 61
INT1 (P0.1) INTERRUPT OPERATION......................................................................................... 63
T0 INTERRUPT OPERATION ....................................................................................................... 64
TC0 INTERRUPT OPERATION..................................................................................................... 65
MULTI-INTERRUPT OPERATION............................................................................................... 66
I/O PORT ................................................................................................................................................ 67
7.1
7.2
7.3
7.4
I/O PORT MODE ............................................................................................................................. 67
I/O PULL UP REGISTER ................................................................................................................ 68
I/O OPEN-DRAIN REGISTER........................................................................................................ 69
I/O PORT DATA REGISTER .......................................................................................................... 70
8
8
TIMERS .................................................................................................................................................. 71
8.1
8.2
8.2.1
WATCHDOG TIMER...................................................................................................................... 71
TIMER 0 (T0) ................................................................................................................................... 73
OVERVIEW .............................................................................................................................. 73
8.2.2
T0M MODE REGISTER........................................................................................................... 73
8.2.3
T0C COUNTING REGISTER................................................................................................... 74
8.2.4
T0 TIMER OPERATION SEQUENCE ..................................................................................... 75
8.3
TIMER/COUNTER 0 (TC0) ............................................................................................................ 76
8.3.1
OVERVIEW .............................................................................................................................. 76
8.3.2
TC0M MODE REGISTER ........................................................................................................ 77
8.3.3
TC0C COUNTING REGISTER ................................................................................................ 78
8.3.4
TC0R AUTO-LOAD REGISTER .............................................................................................. 79
8.3.5
TC0 CLOCK FREQUENCY OUTPUT (BUZZER) .................................................................. 80
8.3.6
TC0 TIMER OPERATION SEQUENCE .................................................................................. 81
8.4
PWM0 MODE .................................................................................................................................. 83
8.4.1
8.4.2
8.4.3
8.4.4
9
9
10
10
10.1
10.2
10.3
11
11
OVERVIEW .............................................................................................................................. 83
TCxIRQ and PWM Duty ........................................................................................................... 84
PWM Duty with TCxR Changing.............................................................................................. 85
PWM PROGRAM EXAMPLE .................................................................................................. 86
INSTRUCTION TABLE ....................................................................................................................... 87
ELECTRICAL CHARACTERISTIC .............................................................................................. 88
ABSOLUTE MAXIMUM RATING ................................................................................................ 88
ELECTRICAL CHARACTERISTIC............................................................................................... 88
CHARACTERISTIC GRAPHS ....................................................................................................... 89
OTP PROGRAMMING PIN............................................................................................................. 90
SONiX TECHNOLOGY CO., LTD
Page 5
Version 1.3