本帖最后由 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
|