SONiX Technology Co., Ltd.
SN8F5702 Series
Datasheet
8051-based Microcontroller
SN8F5702
SN8F570200
SN8F570202
SN8F570210
SN8F570211
SN8F570212
SN8F570213
www.sonix.com.tw
SN8F5702 Series
1
Device Overview
1.1 Features
-
Enhanced 8051 microcontroller
with reduced
instruction cycle time (up to 12 times 80C51)
- Up to 32 MHz flexible CPU frequency
- Internal 32 MHz Clock Generator (IHRC)
-
4 KB non-volatileflash memory (IROM)
with
in-system program support
-
256 bytes internal RAM (IRAM)
-
13 interrupt sources with priority levels
control and unique interrupt vectors
- 12 internal interrupts
- 1external interrupts: INT0
- 1 set of DPTR
- 2 set 8/16-bit timers with 4 operation modes
- 1set16-bit timers with 4 comparison output
(PWM) and capture channels
-
1set16-bit PWM generators:
- each PWM generator has 4output channels
with inverters and dead-band control
-
12-bit SAR ADC
with 10 external and2internal
channels, and 4 internal reference voltages
-
SPI, UART, I2Cinterface
with SMBus Support
-
On-Chip Debug Support:
Single-wire debug interface
2hardware 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
1.3 Features Selection Table
PWM
Channels
ADC ext.
Channels
Package
Types
DIP20,SOP20
TSSOP20, QFN20
SOP16,TSSOP16,
QFN16
SOP14
SOP14
SOP14
MSOP10
SOP8
Device Overview
2
SN8F5702
SN8F570212
SN8F570210
SN8F570211
SN8F570213
SN8F570200
SN8F570202
18
14
12
12
12
8
6
8
6
5
5
5
3
3
V
V
-
V
-
-
-
V
V
-
-
-
-
-
V
TX
*(1)
10
8
6
6
6
5
4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
V
TX
*(1)
V
TX
*(1)
TX
*(1)
*(1)Only support UART TX mode.
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.3
Ext. INT
1
1
1
1
1
1
1
UART
CMP
OPA
I/O
I2C
SPI
www.sonix.com.tw
SN8F5702 Series
1.4 Block Diagram
On-chip Debug
Support
8051-based CPU
Accumulator
PC, SP, DPTR
ALU
System Clock and
Power Management
Controller
32 MHz IHRC
On-chip High Clock
Generator
Reset and Power-on
Controller
ISR
256 Bytes IRAM
Timers
ADC
4KB On-chip
Non-volatile Memory
PWM Generators
SPI, UART, I2C
GPIO / Pin-sharing Controller
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.3
Device Overview
3
www.sonix.com.tw
SN8F5702 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
Table of Contents
Device Overview...................................................................................................................... 2
Table of Contents..................................................................................................................... 4
Revision History ....................................................................................................................... 5
Pin Assignments ...................................................................................................................... 7
CPU ....................................................................................................................................... 15
Special Function Registers ..................................................................................................... 21
Reset and Power-on Controller .............................................................................................. 29
System Clock and Power Management .................................................................................. 35
System Operating Mode ........................................................................................................ 43
Interrupt................................................................................................................................ 48
GPIO ...................................................................................................................................... 59
External Interrupt .................................................................................................................. 63
Timer 0 and Timer 1 .............................................................................................................. 65
Timer 2 .................................................................................................................................. 72
PWM ..................................................................................................................................... 82
ADC ....................................................................................................................................... 90
UART ................................................................................................................................... 101
SPI ....................................................................................................................................... 110
I2C ....................................................................................................................................... 116
In-System Program .............................................................................................................. 130
Electrical Characteristics ...................................................................................................... 134
Instruction Set ..................................................................................................................... 137
Development Environment .................................................................................................. 142
SN8F5702 Starter-Kit ........................................................................................................... 144
ROM Programming Pin ........................................................................................................ 147
Ordering Information .......................................................................................................... 152
Package Information ............................................................................................................ 154
Appendix: Reference Document .......................................................................................... 164
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.3
Table of Contents
4
www.sonix.com.tw
SN8F5702 Series
3
Revision History
Revision
1.0
1.1
Date
Sep.2015
Oct. 2015
First issue
1.
2.
3.
4.
5.
1.2
1.3
Nov. 2015
Nov. 2015
1.
1.
2.
3.
4.
1.
1.
2.
1.6
Apr. 2016
1.
2.
3.
4.
5.
1.
2.
3.
4.
5.
1.8
Nov. 2016
1.
2.
1.
1.
2.
1.
1.
1.
Modify timer section and electrical characteristic section.
Modify SN8F57023/SN8F57024 pin assignment.
Add program memory security section, special function register
section and noise filter section.
Modify minimum requirement in debug interface section.
Update electrical characteristics
Update package type
SN8F57021 was renamed SN8F570210.
SN8F57022 was renamed SN8F570200.
SN8F57023 was renamed SN8F570211.
SN8F57024 was renamed SN8F570212.
Modify SN8F570200 pin assignment
Modify electrical characteristic in IHRC section.
Add power saving description in UART/SPI/I2C section.
Add Timer 2 capture function waveform to illustrate operation.
Special Function Registers adds Register Declaration section.
Add Appendix: Reference Document chapter.
Add ROM Programming Pin chapter.
Add QFN20 and SOP14 package type.
I2C example modify.
Modify Power Management section and In-System Program
section.
Modify PW1M & PW1YH/L registersdescription.
Add SOP8 package type.
Add ADC internal reference range.
Modify feature table and I2C status code.
Add UART Baud Rate Table, WDT description in watchdog reset
section and QFN16 package type.
Modify electrical characteristic section.
Add pincircuitdiagrams section.
Add package information.
Modify LVD related content.
Add design note description.
Modify QFN16 3x3 dimension.
Description
1.4
1.5
Nov. 2015
Dec. 2015
1.7
Aug. 2016
1.9
2.0
2.1
2.2
2.3
Dec. 2016
Sep. 2017
Nov. 2017
Dec. 2017
Jul.2018
Copyright © 2018, SONiX Technology Co., Ltd.
Datasheet Rev. 2.3
Revision History
5