SONiX Technology Co., Ltd.
SN8F5703 Series
Datasheet
8051-based Microcontroller
SN8F5703
SN8F570320
SN8F570321
SN8F570310
SN8F570311
www.sonix.com.tw
SN8F5703 Series
1
Device Overview
1.1 Features
-
Enhanced 8051 microcontroller
with reduced
instruction cycle time (up to 12 times 80C51)
- Up to 8 MHz flexible CPU frequency
- Internal 32 MHz Clock Generator (IHRC),
1 MHz to 16 MHz crystal, and external
synchronous clock source selections
- Real-time clock with 32.768 kHz crystal
-
8 KB non-volatileflash memory (IROM)
with
in-system program support
-
256 bytes internal RAM (IRAM)
-
256 bytes external RAM (XRAM)
-
15 interrupt sources with priority levels
control and unique interrupt vectors
- 13 internal interrupts
- 2external interrupts: INT0, INT1
- 1 set of DPTR
- 2set 8/16-bit timers with 4 operation modes
- 1 set 16-bit timers with 4comparison output
(PWM) and capture channels
-
1set 16-bit PWM generators:
each PWM generator has 6output channels
with inverters and dead-band control
-
12-bit SAR ADC
with 11 external and2internal
channels, and 4 internal reference voltages
-
SPI, UART, I2Cinterface
with SMBus Support
-
On-Chip Debug Support:
Single-wire debug interface
3hardware breakpoints
Unlimited software breakpoints
ROM data security/protection
- Watchdog and programmable external reset
- 1.8V low voltage detectors
- Wide supply voltage (1.8 V – 5.5 V) and
temperature (-40 °C to 85 °C) range
1.2 Applications
- Brushless DC motor
- Home automation
- Household
- Other
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.6
Device Overview
2
www.sonix.com.tw
SN8F5703 Series
1.3 Features Selection Table
PWM
Channels
ADC ext.
Channels
Package
Types
SOP24,
SSOP24,
TSSOP24,
QFN24
DIP20,SOP20,
TSSOP20
QFN20
DIP16,SOP16
QFN16
ALU
Device Overview
3
SN8F5703
22
10
V
V
V
11
1
1
SN8F570320
SN8F570321
SN8F570310
SN8F570311
18
18
14
14
6
8
3
7
V
V
V
V
-
V
-
V
V
V
V
V
10
9
7
5
1
1
1
-
1
1
1
-
1.4 Block Diagram
On-chip Debug
Support
8051-based CPU
Accumulator
PC, SP, DPTR
System Clock and
Power Management
Controller
32 MHz IHRC
On-chip High Clock
Generator
Reset and Power-on
Controller
ISR
Timers
256 Bytes On-chip
XRAM
8KB On-chip
Non-volatile Memory
Off-chip Crystal
Driver
PWM Generators
SPI, UART, I2C
GPIO / Pin-sharing Controller
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.6
Ext. INT
2
2
2
2
1
UART
CMP
OPA
I/O
I2C
SPI
256 Bytes IRAM
ADC, OP-Amps,
Comparators
www.sonix.com.tw
SN8F5703 Series
2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Table of Contents
Device Overview...................................................................................................................... 2
Table of Contents..................................................................................................................... 4
Revision History ....................................................................................................................... 5
Pin Assignments ...................................................................................................................... 8
CPU ....................................................................................................................................... 16
Special Function Registers ..................................................................................................... 22
Reset and Power-on Controller .............................................................................................. 30
System Clock and Power Management .................................................................................. 36
System Operating Mode ........................................................................................................ 45
Interrupt................................................................................................................................ 50
GPIO ...................................................................................................................................... 61
External Interrupt .................................................................................................................. 65
Timer 0 and Timer 1 .............................................................................................................. 68
Timer 2 .................................................................................................................................. 75
PWM ..................................................................................................................................... 86
Comparator ........................................................................................................................... 93
OPA ....................................................................................................................................... 98
ADC ..................................................................................................................................... 100
UART ................................................................................................................................... 110
SPI ....................................................................................................................................... 119
I2C ....................................................................................................................................... 127
In-System Program .............................................................................................................. 142
Electrical Characteristics ...................................................................................................... 146
Instruction Set ..................................................................................................................... 150
Development Environment .................................................................................................. 155
SN8F5703 Starter-Kit ........................................................................................................... 157
ROM Programming Pin ........................................................................................................ 160
Ordering Information .......................................................................................................... 163
Package Information ............................................................................................................ 165
Appendix: Reference Document .......................................................................................... 176
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.6
Table of Contents
4
www.sonix.com.tw
SN8F5703 Series
3
Revision History
Revision
1.0
1.1
Date
Sep.2015
Oct. 2015
First issue.
1. Modify timer section and electrical characteristic section.
2. Add program memory security section and noise filter section.
3. Add Special function registers section.
1. Updateelectrical characteristic section.
2. Add TSSOP24 pin assignment.
1. SN8F57031 was renamed SN8F570320.
2. SN8F57032 was renamed SN8F570310.
1. Modify SN8F570310 pin assignment.
1. Modify IHRC Characteristic.
1.
2.
3.
4.
5.
6.
7.
Add Timer 2 capture function waveform to illustrate operation.
Modify OPA Characteristic section.
Special Function Registers adds Register Declaration section.
Add Appendix: Reference Document chapter.
Add ROM Programming Pin chapter.
Add QFN 24 pin assignment.
Repair an error, omission, etc.
Description
1.2
1.3
1.4
1.5
1.6
Oct. 2015
Nov. 2015
Nov. 2015
Dec. 2015
Apr. 2016
1.7
Aug. 2016
1. Repair an error, omission, etc.
2. Modify Power Management section and In-System Program
section.
3. Modify PW1M & PW1YH/L registersdescription.
4. ADC & Comparator Characteristics add V
IREF
parameter.
1. Add UART Baud Rate Table.
2. Add WDT description in watchdog reset section.
1. Modify features section description.
2. Modify electrical characteristic section.
3. Add SN8F570321 (QFN20) and SN8F570311 (QFN 16) pin
assignment.
1.
2.
3.
4.
5.
6.
Repair an error, omission, etc.
Modify features selection table.
Modify UART Baud Rate Control section.
Modify PFLAG register initial value.
Update Register Declaration section.
Add Pin Circuit Diagrams.
1.8
1.9
Oct. 2016
Dec. 2016
2.0
Aug. 2017
2.1
Sep. 2017
1. Add package information.
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.6
Revision History
5