电子工程世界电子工程世界电子工程世界

产品描述

搜索
 

STC8F2K16S2

器件型号:STC8F2K16S2
器件类别:嵌入式处理器和控制器   
厂商:STC(宏晶)
厂商官网:http://www.stcmcu.com/
下载文档

器件描述

工作电压:2V ~ 5.5V CPU位数:8-Bit CPU内核:8051 主频(MAX):33MHz ROM类型:FLASH

参数
参数名称属性值
属性参数值
商品目录STC(宏晶)
UART/USART2
额外特性-
SPI1
USB Device0
USB Host/OTG0
PWM0
I2C(SMBUS/PMBUS)1
LCD0
工作电压2V ~ 5.5V
EEPROM 尺寸4KB
Etherne0
A/D0
CAN0
D/A0
CPU位数8-Bit
CPU内核8051
ROM尺寸16KB
RAM大小2KB
主频(MAX)33MHz
I/O 数18
ROM类型FLASH

STC8F2K16S2产品介绍

宏 晶 科 技
STC
micro
TM
江苏½芯科技有限公司
STC8
系列单片机
技术参考手册
技术支持½站:www.STCMCU.com
/
www.GXWMCU.com
/
www.STCMCUDATA.com
资料更新日期:2017/8/9
STC8
系列技术手册
官方½站:
www.STCMCU.com / www.GXWMCU.com
技术支持:
13922829991
研发顾问:
13922805190
目½
1
2
2.1
2.2
2.3
2.4
2.5
2.6
3
3.1
3.1.1
3.1.2
3.1.3
3.1.4
3.1.5
3.1.6
3.2
3.2.1
3.2.2
3.2.3
3.2.4
3.3
3.3.1
3.4
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
3.4.6
3.4.7
3.4.8
3.4.9
3.4.10
4
4.1
4.2
4.3
4.4
4.5
概述..........................................................................................................................................
1
特性及价格..............................................................................................................................
3
STC8A8K64S4A12
系列特性及价格
..................................................................................... 3
STC8A4K64S2A12
系列特性及价格
..................................................................................... 5
STC8F2K64S4
系列特性及价格
............................................................................................ 7
STC8F2K64S2
系列特性及价格
............................................................................................ 9
STC8F1K08S2A10
系列提前通告.........................................................................................11
STC8F1K08S2
系列提前通告
.............................................................................................. 12
管脚及说明............................................................................................................................
13
管脚图....................................................................................................................................
13
STC8A8K64S4A12
系列管脚图...........................................................................................
13
STC8A4K64S2A12
系列管脚图...........................................................................................
17
STC8F2K64S4
系列管脚图
.................................................................................................. 21
STC8F2K64S2
系列管脚图
.................................................................................................. 24
STC8F1K08S2A10
系列管脚图............................................................................................
27
STC8F1K08S2
系列管脚图
.................................................................................................. 27
管脚说明................................................................................................................................
28
STC8A8K64S4A12
系列管脚说明.......................................................................................
28
STC8A4K64S2A12
系列管脚说明.......................................................................................
35
STC8F2K64S4
系列管脚说明
.............................................................................................. 42
STC8F2K64S2
系列管脚说明
.............................................................................................. 46
功½脚切换
............................................................................................................................ 50
功½脚切换相关寄存器
........................................................................................................ 50
范例程序................................................................................................................................
53
串口
1
切换............................................................................................................................
53
串口
2
切换............................................................................................................................
54
串口
3
切换............................................................................................................................
54
串口
4
切换............................................................................................................................
55
SPI切换 .................................................................................................................................. 55
PWM切换 .............................................................................................................................. 56
PCA/CCP/PWM切换............................................................................................................. 58
I2C切换.................................................................................................................................. 59
比较器输出切换
.................................................................................................................... 59
主时钟输出切换
.................................................................................................................... 60
封装尺寸图............................................................................................................................
62
LQFP64S封装尺寸图(12mm*12mm).............................................................................. 62
LQFP64L封装尺寸图(16mm*16mm).............................................................................. 63
LQFP48
封装尺寸图(9mm*9mm)
................................................................................... 64
LQFP44
封装尺寸图(12mm*12mm)
............................................................................... 67
LQFP32
封装尺寸图(9mm*9mm)
................................................................................... 70
-i-
江苏½芯科技有限公司
总机:
0513-5501 2928/2929/2966
传真:
0513-5501 2926/2956/2947
STC8
系列技术手册
官方½站:
www.STCMCU.com / www.GXWMCU.com
技术支持:
13922829991
研发顾问:
13922805190
4.6
4.7
4.8
4.9
5
5.1
5.2
6
6.1
6.1.1
6.1.2
6.1.3
6.1.4
6.1.5
6.2
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
7
7.1
7.2
7.3
7.4
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.4.6
8
8.1
8.2
8.2.1
8.2.2
8.2.3
9
9.1
9.2
9.3
9.4
9.5
QFN32
封装尺寸图(4mm*4mm).....................................................................................
71
PDIP40
封装尺寸图
.............................................................................................................. 72
TSSOP20
封装尺寸图
........................................................................................................... 73
SOP16
封装尺寸图................................................................................................................
74
STC8
系列单片机选型价格一览表
..................................................................................... 75
STC8
系列单片机封装价格一览表......................................................................................
76
STC8
系列单片机½名规则..................................................................................................
77
ISP下½½及典型应用线路图.................................................................................................. 78
STC8F系列ISP下½½应用线路图........................................................................................... 78
½用RS-232 ½换器下½½.......................................................................................................
78
½用PL2303 下½½
.................................................................................................................. 79
½用U8-Mini工具下½½
.......................................................................................................... 80
½用U8W工具下½½
............................................................................................................... 81
USB直接ISP下½½ .................................................................................................................. 82
STC8A系列ISP下½½应用线路图 .......................................................................................... 83
½用RS-232 ½换下½½(½用高精度ADC).......................................................................
83
½用RS-232 ½换下½½(ADC一般应用)...........................................................................
84
½用PL2303 下½½
.................................................................................................................. 85
½用U8-Mini工具下½½
.......................................................................................................... 86
½用U8W工具下½½
............................................................................................................... 87
USB直接ISP下½½ .................................................................................................................. 88
时钟、复½与电源管理........................................................................................................
89
系统时钟控制
........................................................................................................................ 89
系统复½................................................................................................................................
91
系统电源管理
........................................................................................................................ 93
范例程序................................................................................................................................
93
选择系统时钟源
.................................................................................................................... 93
主时钟分频输出
.................................................................................................................... 95
看门狗定时器应用
................................................................................................................ 96
½复½实现自定义下½½
........................................................................................................ 97
½压检测................................................................................................................................
98
省电模式................................................................................................................................
99
存储器..................................................................................................................................
101
程序存储器
.......................................................................................................................... 101
数据存储器
.......................................................................................................................... 101
内部RAM.............................................................................................................................
102
内部扩展RAM.....................................................................................................................
103
外部扩展RAM.....................................................................................................................
104
特殊功½寄存器..................................................................................................................
106
STC8A8K64S4A12
系列.....................................................................................................
106
STC8A4K64S2A12
系列.....................................................................................................
107
STC8F2K64S4
系列
............................................................................................................ 108
STC8F2K64S2
系列
............................................................................................................ 109
特殊功½寄存器列表
...........................................................................................................110
江苏½芯科技有限公司
总机:
0513-5501 2928/2929/2966
传真:
0513-5501 2926/2956/2947
- ii -
STC8
系列技术手册
官方½站:
www.STCMCU.com / www.GXWMCU.com
技术支持:
13922829991
研发顾问:
13922805190
10
10.1
10.2
10.3
10.3.1
10.3.2
10.3.3
10.3.4
10.4
10.4.1
10.4.2
11
12
12.1
12.1.1
12.1.2
12.1.3
12.1.4
12.2
12.3
12.3.1
12.3.2
12.3.3
12.4
12.4.1
12.4.2
12.4.3
12.4.4
12.4.5
12.4.6
12.4.7
12.4.8
12.4.9
12.4.10
12.4.11
12.4.12
12.4.13
12.4.14
12.4.15
12.4.16
12.4.17
12.4.18
12.4.19
12.4.20
I/O口 .....................................................................................................................................115
I/O口相关寄存器..................................................................................................................115
配½I/O口..............................................................................................................................118
I/O的结构图......................................................................................................................... 120
准双向口(弱上拉)
.......................................................................................................... 120
推½输出..............................................................................................................................
120
高阻输入..............................................................................................................................
120
开漏输出..............................................................................................................................
121
范例程序..............................................................................................................................
121
端口模式设½
...................................................................................................................... 121
双向口读写操½
.................................................................................................................. 122
指令系统..............................................................................................................................
124
中断系统..............................................................................................................................
128
STC8
系列中断源................................................................................................................
128
STC8A8K64S4A12
系列中断源.........................................................................................
129
STC8A4K64S2A12
系列中断源.........................................................................................
129
STC8F2K64S4
系列中断源
................................................................................................ 129
STC8F2K64S2
系列中断源
................................................................................................ 130
STC8
系列中断列表............................................................................................................
131
中断相关寄存器
.................................................................................................................. 133
中断½½寄存器(中断允许½)
...................................................................................... 134
中断请求寄存器(中断标志½)
...................................................................................... 138
中断优先级寄存器
.............................................................................................................. 140
范例程序..............................................................................................................................
142
INT0
中断(上升沿和下降沿)
........................................................................................ 142
INT0
中断(下降沿)
........................................................................................................ 143
INT1
中断(上升沿和下降沿)
........................................................................................ 144
INT1
中断(下降沿)
........................................................................................................ 145
INT2
中断(下降沿)
........................................................................................................ 146
INT3
中断(下降沿)
........................................................................................................ 147
INT4
中断(下降沿)
........................................................................................................ 148
定时器
0
中断
...................................................................................................................... 149
定时器
1
中断
...................................................................................................................... 150
定时器
2
中断
...................................................................................................................... 151
定时器
3
中断
...................................................................................................................... 152
定时器
4
中断
...................................................................................................................... 153
UART1
中断
........................................................................................................................ 154
UART2
中断
........................................................................................................................ 156
UART3
中断
........................................................................................................................ 157
UART4
中断
........................................................................................................................ 159
ADC中断 ............................................................................................................................. 161
LVD中断 .............................................................................................................................. 162
PCA中断 .............................................................................................................................. 163
SPI中断 ................................................................................................................................ 165
江苏½芯科技有限公司
总机:
0513-5501 2928/2929/2966
传真:
0513-5501 2926/2956/2947
- iii -
STC8
系列技术手册
官方½站:
www.STCMCU.com / www.GXWMCU.com
技术支持:
13922829991
研发顾问:
13922805190
12.4.21 CMP中断 ............................................................................................................................. 166
12.4.22 PWM中断 ............................................................................................................................ 167
12.4.23 I2C中断................................................................................................................................ 170
13
定时器/计数器.....................................................................................................................
173
13.1
定时器的相关寄存器
.......................................................................................................... 173
13.2
定时器
0/1............................................................................................................................ 174
13.3
定时器
2............................................................................................................................... 176
13.4
定时器
3/4............................................................................................................................ 177
13.5
掉电唤醒定时器
.................................................................................................................. 178
13.6
范例程序..............................................................................................................................
179
13.6.1
定时器
0(模式 0-16
½自动重½½)
............................................................................... 179
13.6.2
定时器
0(模式 1-16
½不自动重½½)
........................................................................... 180
13.6.3
定时器
0(模式 2-8
½自动重½½)
................................................................................. 181
13.6.4
定时器
0(模式 3-16
½自动重½½不可屏½中断)
....................................................... 182
13.6.5
定时器
0(外部计数-扩展T0
为外部下降沿中断)......................................................
183
13.6.6
定时器
0(测量脉½-INT0
高电平½度)......................................................................
184
13.6.7
定时器
0(时钟分频输出) ............................................................................................... 185
13.6.8
定时器
1(模式 0-16
½自动重½½)
............................................................................... 186
13.6.9
定时器
1(模式 1-16
½不自动重½½)
........................................................................... 187
13.6.10
定时器
1(模式 2-8
½自动重½½)
................................................................................. 188
13.6.11
定时器
1(外部计数-扩展T1
为外部下降沿中断)......................................................
189
13.6.12
定时器
1(测量脉½-INT1
高电平½度)......................................................................
190
13.6.13
定时器
1(时钟分频输出) ............................................................................................... 191
13.6.14
定时器
1(模式 0)做串口 1
波特率发生器
.................................................................... 191
13.6.15
定时器
1(模式 2)做串口 1
波特率发生器
.................................................................... 194
13.6.16
定时器
2(16
½自动重½½)
.............................................................................................. 197
13.6.17
定时器
2(外部计数-扩展T2
为外部下降沿中断)......................................................
198
13.6.18
定时器
2(时钟分频输出) ............................................................................................... 200
13.6.19
定时器
2
做串口
1
波特率发生器
...................................................................................... 201
13.6.20
定时器
2
做串口
2
波特率发生器
...................................................................................... 203
13.6.21
定时器
2
做串口
3
波特率发生器
...................................................................................... 206
13.6.22
定时器
2
做串口
4
波特率发生器
...................................................................................... 209
13.6.23
定时器
3(16
½自动重½½)
.............................................................................................. 213
13.6.24
定时器
3(外部计数-扩展T3
为外部下降沿中断)......................................................
214
13.6.25
定时器
3(时钟分频输出) ............................................................................................... 215
13.6.26
定时器
3
做串口
3
波特率发生器
...................................................................................... 216
13.6.27
定时器
4(16
½自动重½½)
.............................................................................................. 219
13.6.28
定时器
4(外部计数-扩展T4
为外部下降沿中断)......................................................
220
13.6.29
定时器
4(时钟分频输出) ............................................................................................... 221
13.6.30
定时器
4
做串口
4
波特率发生器
...................................................................................... 222
14
串口通信..............................................................................................................................
226
14.1
串口相关寄存器
.................................................................................................................. 226
14.2
串口
1................................................................................................................................... 226
14.2.1
串口
1
模式
0 ....................................................................................................................... 228
江苏½芯科技有限公司
总机:
0513-5501 2928/2929/2966
传真:
0513-5501 2926/2956/2947
- iv -
小广播

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程

器件索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

北京市海淀区知春路23号集成电路设计园量子银座1305 电话:(010)82350740 邮编:100191

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2021 EEWORLD.com.cn, Inc. All rights reserved