STM8S003使用手册


-
STM8S003使用手册,STM8S单片机软件硬件开发不可或缺的参考资料
STM8S003K3 STM8S003F3 Contents 9 Electrical characteristics …46 9.1 Parameter conditions 46 9.1.1 Minimum and maximum values 46 9. 1.2 Typical values 46 9.1.3 Typical curves… 46 9. 1. 4 Loading capacitor 46 9.1.5 Pin input voltage 46 9.2 Absolute maximum ratings 47 9.3 Operating conditions 49 9.3.1 VCAP external capacitor 50 9.3.2 Supply current characteristics 9.3.3 External clock sources and timing characteristics 60 9.3. 4 Internal clock sources and timing characteristics 62 9.3.5 Memory characteristics 64 9. 3. l/O port pin characteristics 9.3.7 Reset pin characte 74 9.3.8 SPI serial peripheral interface ....... 9.3.9C interface characteristics 9.3. 10-bit ADC characteristics 81 9.3.11 EMC characteristics 85 10 Package information ∴89 10.1 32-pin LQFP package mechanical data 89 10.2 20-pin TSSOP package mechanical data 90 10.3 20-lead UFQFPN package mechanical data 92 11 Thermal characteristics 94 11. 1 Reference document 94 11.2 Selecting the product temperature range 94 12 Ordering information 96 13STM8 development tools…,…,,97 13.1 Emulation and in-circuit debugging tools 13.2 Software tools 13.2.1 STM8 toolset 98 13.2.2C and assembly toolchains 98 13.3 Programming tools 98 14 Revision history,… 99 DocID018576 Rev 3 3/100 List of tables STM8S003K3 STM8S003F3 List of tables Table 1. stm8s003xx value line features Table 2. Peripheral clock gating bit assignments in CLK_ PCKENR1/2 registers 13 Table 3. tiM timer features 15 Table 4. Legend/abbreviations for pinout tables 18 Table 5. LQFP32 pin description 19 Table 6. STM8S003F3 pin description 22 Table 7. IO port hardware register map 26 Table 8. General hardware register map .27 Table 9. CPU/SWIM/debug module/interrupt controller registers Table 10 Interrupt mapping 39 Table 11. option bytes 99 Table 12 Option byte description Table 13. STM8S003K3 alternate function remapping bits for 32-pin devices 43 Table 14. STM8S003F3 alternate function remapping bits for 20-pin devices 44 Table 15. Voltage characteristics Table 16. Current characteristics 1,a Table 17. Thermal characteristics 48 Table 18. General operating conditions 49 Table 19. Operating conditions at power-up/power-down Table 20 Total current consumption with code execution in run mode at VDp=5. 50 Table 21. Total current consumption with code execution in run mode at Von =3.3v 52 Table 22. Total current consumption in wait mode at VDD=5V 53 Table 23 Total current consumption in wait mode at Table 24. Total current consumption in active halt mode at VDp=5 V 54 Table 25. Total current consumption in active halt mode at Vdp=3.3V 54 Table 26 Total current consumption in halt mode at VDD=5V 55 Table 27. Total current consumption in halt mode at Voo =3.3 v Table 28 Wakeup times Table 29. Total current consumption and timing in forced reset state 56 .57 Table 30. Peripheral current consumption Table 31 hse user external clock characteristics 60 Table 32 hse oscillator characteristics Table 33. hsl oscillator characteristics 62 Table 34. LsI oscillator characteristics Table 35. RAM and hardware registers ∴64 Table 36. Flash program memory and data EEPROM 65 Table 37 o static characteristics 66 Table 38. Output driving current (standard ports) 68 Table 39. Output driving current(true open drain ports 68 Table 40 Output driving current(high sink ports) 69 Table 41. NRST pin characteristics 74 Table 42 sPi characteristics 78 Table 43.2C characteristics 80 Table 44. Adc characteristics 82 Table 45. ADC accuracy with Rain <10 kQ, VDD =5V .82 Table 46. ADC accuracy with RAIN 10 kQ RAIN, VDD=3.3V Table 47. ems data 86 4/100 DocID018576 Rev 3 STM8S003K3 STM8S003F3 List of tables Table48. EMi data∴ aa:.aa..aa.:.::::::aa.aa. 86 Table 49. Esd absolute maximum ratings Table 50. Electrical sensitivities 88 Table 51 32-pin low profile quad flat package mechanical data 89 Table 52 20-pin, 4. 40 mm body, 0. 65 mm pitch mechanical data Table 53. 20-lead ultra thin fine pitch quad flat no-lead package(33)mechanical data 2 Table 54. Thermal characteristics 94 Table 55. Document revision history 99 DocID018576 Rev 3 5/100 List of figures STM8S003K3 STM8S003F3 List of fiqures igure 1 Block diagram Figure2. Flash memory organization…… .12 Figure 3. STM8S003K3 LQFP32 pinout 18 Figure 4. STM8S003F3 TSSOP20 pinout 21 Figure 5. STM8S003F3 UFQFPN20-pin pinout 22 Figure 6. Memory map 25 Figure7. Pin loading conditions……… 46 Figure 8 Pin input voltage 47 Figure: Comar Versus\DD…… .50 Figure 10. External capacitor CEXT 50 Figure 11. Typ IDD(RUN)VS VDD HSE user external clock, fcPU=16 MHZ 58 Figure 12. Typ DD(RUN)VS fcPU HSE user external clock, VDD=5 V 58 Figure 13 Typ IDD(RUN) VS VDD HSI RC OSC, fcPU=16 MHz 59 Figure 14. Typ IDD(wF) VS VDD HSE user external clock, fcPu =16 MHz 59 Figure 15. Typ IDD(WFI)VS fcpu HSE user external clock, DD=5V 60 Figure 16. Typ IDD() VS. VDD HSI RC OSC, cPU=16 MHZ 60 Figure 17 HSE external clock source Figure 18 HSE oscillator circuit diagram 62 igure 19. Typical HSI frequency variation vs Vpp 4 temperatures 63 Figure 20. Typical LSI frequency variation vs VDp 4 temperatures 64 Figure 21. Typical VI and vIh vs Vop 4 temperatures Figure 22. Typical pull-up resistance Vs VDp@ 4 temperatures .67 Figure23. Typical pu‖ up current Vs VDD@4 temperatures…… 68 Figure 24. Typ. VOL O VDD= 5 V(standard ports) 70 Figure 25. Typ. Vo Vop =3.3 V(standard ports) 70 Figure 26. Typ. VoL Vdp =5V(true open drain ports .71 Figure 27 Typ. VOL VDD =3.3V(true open drain ports) Figure28.Typ.VoL@VD=5∨( high sink ports)… 72 Figure 29 Typ. VOL VDD =3.3 V(high sink ports) 72 Figure 30. Typ. VDD - VOHO VDD =5V(standard ports 73 igure 31. Typ. VDD-VOH O VDD =3.3V(standard ports) 73 Figure 32. Typ. VDD -VOH@ VDp =5V(high sink ports 74 Figure 33. Typ. VDD-VOHQ VDD =3.3V(high sink ports Figure 34. Typical NRST VI and ViH VS VDD Q 4 temperatures ∴74 76 Figure 35. Typical NRST pull-up resistance vs VDD 4 temperatures 76 Figure 36. Typical NRST pull-up current vs Vpp 4 temperatures 77 Figure 37. Recommended reset pin protection Figure 38. SPI timing diagram -slave mode and CPHA=0 79 Figure 39. SPI timing diagram - slave mode and CPha=1 79 Figure 40. SPI timing diagram-master mode 80 Figure 41. Typical application with C bus and timing diagram ... 84 Figure 42. ADC accuracy characteristics 84 Figure 43. Typical application with ADC 85 Figure 44 32-pin low profile quad flat package(7X 7) 89 Figure 45. 20-pin, 4.40 mm body, 0.65 mm pitch 90 Figure 46 20-lead ultra thin fine pitch quad flat no-lead package outline(3x3) 92 Figure 47. STM8S003x value line ordering information scheme 96 6/100 DocID018576 Rev 3 STM8S003K3 STM8S003F3 Introduction Introduction This datasheet contains the description of the device features, pinout, electrical characteristics mechanical data and ordering information e For complete information on the sTM8s microcontroller memory, registers and peripherals, please refer to the STM8S microcontroller family reference manual(RM0016) o For intormation on programming, erasing and protection of the internal Flash memory please refer to the STM8S Flash programming manual (PM0051) For information on the debug and SWiM(single wire interface module)refer to the STM8 SWIM communication protocol and debug module user manual (UM0470) For information on the STM8 core, please refer to the STM8 CPU programming manual (PMO044) DocID018576 Rev 3 7/100 Description STM8S003K3 STM8S003F3 2 Description The STM8S003x value line 8-bit microcontrollers feature 8 Kbytes Flash program memory plus integrated true data eeprom. the stm8s microcontroller family reference manual (RMo016)refers to devices in this family as low-density. They provide the following benefits performance, robustness, and reduced system cost Device performance and robustness are ensured by integrated true data EEPROM supporting up to 100000 write/erase cycles, advanced core and peripherals made in a state-of-the art technology, a 16 MHz clock frequency, robust I/Os, independent watchdogs with separate clock source, and a clock security system The system cost is reduced thanks to high system integration level with internal clock oscillators, watchdog and brown-out reset Full documentation is offered as well as a wide choice of development tools Table 1: stm8s003xx value line features Device STM8S003K3 STM8S003F3 Pin count 32 20 Maximum number of GPIOs(1/Os) 28 16 Ext interrupt pins 27 16 Timer CaPCom channels Timer complementary outputs 734 725 A/D converter channels High sink I/Os 21 12 Low density Flash program memory (bytes) 8K 8K RAM(bytes 1K 1K True data EEPROM(bytes) 128 128 Multipurpose timer(TIM1), SPl, I"C, UART Peripheral set window WDG, independent WDG, ADC, PWM timer(TIM2),8-bit timer(TIM4) Without read-while-write capability 8/100 DocID018576 Rev 3 STM8S003K3 STM8S003F3 Block diagram 3 Block diagram Figure 1: Block diagram DocID018576 Rev 3 9/100 Product overview STM8S003K3 STM8S003F3 Product overview The following section intends to give an overview of the basic features of the device functional modules and peripherals For more detailed information please refer to the corresponding family reference manual (RMo016) Central processing unit sTM8 The 8-bit STM8 core is designed for code efficiency and performance It contains 6 internal registers which are directly addressable in each execution context, 20 addressing modes including indexed indirect and relative addressing and 80 instructions Architecture and registers o Harvard architecture 3-stage pipeline a 32-bit wide program memory bus-single cycle fetching for most instructions X and Y 16-bit index registers-enabling indexed addressing modes with or without offset and read-modify-write type data manipulations 8-bit accumulator 24-bit program counter- 16-Mbyte linear memory space e 16-bit stack pointer-access to a 64 K-level stack 8-bit condition code register-7 condition flags for the result of the last instruction Addressing o 20 addressing modes o Indexed indirect addressing mode for look-up tables located anywhere in the address space o Stack pointer relative addressing mode for local variables and parameter passing Instruction set o 80 instructions with 2-byte average instruction size e Standard data movement and logic/arithmetic functions 8-bit by 8-bit multiplication 16-bit by 8-bit and 16-bit by 16-bit division Bit manipulatio Data transfer between stack and accumulator(push/pop )with direct stack access o Data transfer using the X and Y registers or direct memory-to-memory transfers 4.2 Single wire interface module(swIM)and debug module(DM) The single wire interface module and debug module permits non- intrusive real-time in-circuit debugging and fast memory programming 10/100 DocID018576 Rev 3

-
2018-07-07
4.23MB
stm8s中文参考手册
2018-01-26如题 是 开发STM8S系列单片机 的参考资料 根据官方RM0016翻译 里面详细的介绍了stm8 单片机 的 外设资源及相关寄存器介绍
950KB
STM8S003F3数据手册
2016-10-04-
3.68MB
stm8s系列中文参考手册
2019-04-12好不容易找到的stm8s系列中文编程参考手册,学习编程必备,分享给需要的朋友下载阅读
STM8S参考手册(中文版)STM8函数库中文参考下载_course
2018-10-13STM8S参考手册(中文版) STM8函数库中文参考 STM8S003/103 中文版 相关下载链接://download.csdn.net/download/weixin_38065832/1071
1.2MB
STM8S003F3-数据手册
2019-01-07我也不知道这玩意干啥用的,希望对你们有用,然后写这些内容是凑字数的.
24.42MB
stm8s入门各种中文资料大全
2017-03-11stm8s入门各种中文资料大全包括:stm8s中文手册,stm8入门例程,stm8s硬件知识
3.72MB
STM8S参考手册(中文版)STM8函数库中文参考
2018-10-13STM8S参考手册(中文版) STM8函数库中文参考 STM8S003/103 中文版
4.59MB
STM8S中文参考手册.pdf
2017-03-08本参考手册为应用开发人员提供了关于如何使用STM8S微控制器的存储器和外设的完整信息。 STM8S是一个拥有不同存储器大小,封装和外设的微控制器家族。 ■ STM8S针对通用应用而设计,关于订货信息,
6.77MB
STM8S技术参考手册(中文版)
2018-11-15STM8S技术参考手册(中文版)。本参考手册为应用开収人员提供了关亍如何使用STM8S微控制器的存储器呾外设的完整信息。
4.22MB
STM8S中文参考手册
2018-06-17单片机STM8S系列的中文参考手册,文字版,可直接上手开发
C/C++程序员实战基础
2019-08-2049.98MB
JDK1.8 API 百度翻译版中文 java帮助文档1.8
2016-11-02JDK1.8 API 中文 百度翻译版 java帮助文档 JDK API java 帮助文档 百度翻译 JDK1.8 API 中文 百度翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用
程序员的数学:概率统计
2019-09-19编程的基础是计算机科学,而计算机科学的基础是数学。因此,学习数学有助于巩固编程的基础,写出更健壮的程序。本门课程主要讲解程序员必备的数学知识,借以培养程序员的数学思维。学习者无需精通编程,也无需精通数学。从概率统计、线性代数、微积分、优化理论、随机过程到当前大热的机器学习,讲师幽默风趣,课件精致美观,深入浅出带你重学数学!
Python基础入门
2020-06-05【为什么学Python?】 Python 是当今非常热门的语言之一,2020年的 TIOBE 编程语言排行榜中 ,Python名列第一,并且其流行度依然处在上升势头。 借此机会,裴老师联合CSDN推出了本课程,希望能影响更多的人走进Python,踏入编程的大门。 【你将收获什么?】 · 本课程就是为开发者抓住“新基建”这个历史机遇而设置的。认真地学完了本课程,你就有了一把钥匙,所谓“时势造英雄”,Python语言就是未来成长的垫脚石。 · 从核心基础概念到常见第三方模块,包括数据结构、逻辑运算、常见语句、函数、类及第三方模块,丰富的案例帮助学员快速入门Python。 · “授人以鱼”和“授人以渔”并重是本课程的特色。通过在本课程的学习,学员能够以Python语言为载体,掌握研习高级编程语言的一般方法,为后续个人发展奠定基础。 [知识脉络图]
24.46MB
图书管理系统(Java + Mysql)我的第一个完全自己做的实训项目
2019-01-04图书管理系统 Java + MySQL 完整实训代码,MVC三层架构组织,包含所有用到的图片资源以及数据库文件,大三上学期实训,注释很详细,按照阿里巴巴Java编程规范编写
301KB
【京东飞天茅台1499抢购】报错:抢购失败,无法获取生成订单的基本信息,接口返回:【‘addressList’】的解决方案,2021/1/13亲测可用!
2021-01-13【京东飞天茅台1499抢购】 在抢的过程中,抢购链接获取成功,但是在提交订单的时候,获取地址列表失败了。 抢购时报错:抢购失败,无法获取生成订单的基本信息,接口返回:【'addressList'】 此
-
学院
数据科学:基于Python和R语言实现
数据科学:基于Python和R语言实现
-
下载
uTorrent Pro 3.5.5.45081 -色便携增强版.zip
uTorrent Pro 3.5.5.45081 -色便携增强版.zip
-
下载
一种应用于水下电视的实时温湿度监测系统
一种应用于水下电视的实时温湿度监测系统
-
博客
编程实践笔记No.16
编程实践笔记No.16
-
博客
使用QGIS实现城市空气质量指数(AQI)数据可视化
使用QGIS实现城市空气质量指数(AQI)数据可视化
-
博客
2021-01-28
2021-01-28
-
下载
非常好用的文字转语音软件.rar
非常好用的文字转语音软件.rar
-
下载
基于FPGA的LFMCW测距雷达调制信号源设计
基于FPGA的LFMCW测距雷达调制信号源设计
-
学院
C++异步串口通信
C++异步串口通信
-
博客
NOIP/ACM知识点汇总
NOIP/ACM知识点汇总
-
博客
Nacos - 配置超详细详解(Spring Cloud Alibaba Nacos Config)
Nacos - 配置超详细详解(Spring Cloud Alibaba Nacos Config)
-
学院
2021-1小时Django和Mysql数据库操作入门教程(新手入门)
2021-1小时Django和Mysql数据库操作入门教程(新手入门)
-
学院
商业的本质——杰克·韦尔奇著
商业的本质——杰克·韦尔奇著
-
学院
Python专题精讲 企业级应用日志管理
Python专题精讲 企业级应用日志管理
-
下载
数据库表的琐碎知识8_表的约束.sql
数据库表的琐碎知识8_表的约束.sql
-
学院
Qt and Qt Charts
Qt and Qt Charts
-
学院
转行做IT-第9章 常用类-Scanner、Random等
转行做IT-第9章 常用类-Scanner、Random等
-
下载
go1.15.7.windows-amd64.msi
go1.15.7.windows-amd64.msi
-
博客
9-登录失败自动截图
9-登录失败自动截图
-
博客
cmakelist示例
cmakelist示例
-
下载
智慧城市同城程序V4 1.1.3 前端.zip
智慧城市同城程序V4 1.1.3 前端.zip
-
博客
Sass
Sass
-
博客
2021年R1快开门式压力容器操作考试题库及R1快开门式压力容器操作考试总结
2021年R1快开门式压力容器操作考试题库及R1快开门式压力容器操作考试总结
-
学院
21年新消息队列RabbitMQ视频教程AMQP教程
21年新消息队列RabbitMQ视频教程AMQP教程
-
博客
2021年熔化焊接与热切割多少分及格及熔化焊接与热切割考试技巧
2021年熔化焊接与热切割多少分及格及熔化焊接与热切割考试技巧
-
下载
卫星AIS检测概率分析及冲突信号分离
卫星AIS检测概率分析及冲突信号分离
-
下载
海龟交易法则.pdf
海龟交易法则.pdf
-
博客
一文读懂HTML和CSS的关系
一文读懂HTML和CSS的关系
-
博客
【详细+超基础】Java-学习笔记 07
【详细+超基础】Java-学习笔记 07
-
下载
【Python学习笔记】第三章 数字类型的数据.pdf
【Python学习笔记】第三章 数字类型的数据.pdf