打印

210610-STC8A8K64D4软件库函数初版例程包SOFTWARE-LIB

[复制链接]
3001|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 autopccopy 于 2021-6-11 23:27 编辑

210610-STC8A8K64D4软件库函数初版例程包SOFTWARE-LIB

介绍
STC8A-SOFTWARE-LIB 开发人员工具包是一个完整的固件和软件包,包含
大部分硬件接口的范例程序。本函数库基于 STC8A8K64D4 单片机开发,适用
于 STC8A 系列芯片,具体的 MCU 资源,请参考用户手册中对应的章节。
目录
1.  函数库目录结构 ................................................................................................................................2
1.1  应用程序模块 .......................................................................................................................2
1.2  驱动程序模块 .......................................................................................................................3
1.3  用户程序及配置文件 .........................................................................................................3
2.  系统流程 ..............................................................................................................................................4
2.1  系统流程图 ............................................................................................................................4
2.2  初始化程序 ............................................................................................................................5
2.3  任务调度主循环...................................................................................................................5
3.  公共宏定义 ..........................................................................................................................................6
4.  API 参考 ................................................................................................................................................7
4.1  STC8A_ADC ...........................................................................................................................7
4.2  STC8A_Compare ..................................................................................................................8
4.3  STC8A_Delay ...................................................................................................................... 10
4.4  STC8A_EEPROM ................................................................................................................ 10
4.5  STC8A_Exti .......................................................................................................................... 10
4.6  STC8A_GPIO ....................................................................................................................... 11
4.7  STC8A_I2C .......................................................................................................................... 15
4.8  STC8A_Timer ...................................................................................................................... 16
4.9  STC8A_UART ...................................................................................................................... 17
4.10  STC8A_SPI ........................................................................................................................... 19
4.11  STC8A_Soft_I2C ................................................................................................................. 21
4.12  STC8A_Soft_UART ............................................................................................................ 22
4.13  STC8A_WDT ....................................................................................................................... 22
4.14  STC8A_PCA ......................................................................................................................... 23
4.15  STC8A_PWM15bit ............................................................................................................ 24
4.16  STC8A_BMM ...................................................................................................................... 26
4.17  STC8A_LCM ........................................................................................................................ 31
4.18  STC8A_NVIC ....................................................................................................................... 32

STC8A函数库说明1.jpg (503.34 KB )

STC8A函数库说明1.jpg

STC8A函数库说明2.jpg (458.91 KB )

STC8A函数库说明2.jpg

STC8A函数库main.jpg (214.67 KB )

STC8A函数库main.jpg

210610-STC8A8K64D4软件库函数初版例程包SOFTWARE-LIB_kw.zip

13.1 MB

使用特权

评论回复

相关帖子

沙发
wangminwr| | 2021-6-14 08:15 | 只看该作者
还可以

使用特权

评论回复
板凳
autopccopy|  楼主 | 2021-6-15 21:41 | 只看该作者

这是初版,相信STC厂家一定会不断完善,提供更好的STC8A8K64D4软件库函数版本。(看看STC-ISP软件的更新次数及细节就可做参考了)。

210428-STC8A8K64D4(12位ADC,带DMA)2.JPG (262.95 KB )

210428-STC8A8K64D4(12位ADC,带DMA)2.JPG

210428-STC8A8K64D4(12位ADC,带DMA)6.JPG (531.72 KB )

210428-STC8A8K64D4(12位ADC,带DMA)6.JPG

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:---人活着就是要改变世界! ----51单片机,单片机中的拖拉机!

153

主题

2861

帖子

15

粉丝