stm32f103c8t6_ws281x_spi+dma

所属分类:单片机开发
开发工具:C/C++
文件大小:6545KB
下载次数:4
上传日期:2020-12-30 10:06:55
上 传 者DantePayne
说明:  STM32采用SPI+DMA方式驱动WS2812b,这种方法属于基于其时序,用SPI模拟其发送协议进行操作,这种方法与传统的IO模拟相比,控制周期更短,响应更为迅速,且经过DMA通道,对单片机的占用少,尤其不怕中断。
(STM32 uses SPI + DMA mode to drive ws2812b. This method is based on its timing and uses SPI to simulate its sending protocol. Compared with traditional IO simulation, this method has shorter control cycle, faster response, and less occupation of MCU through DMA channel, especially not afraid of interruption.)

文件列表:
Board (0, 2020-12-04)
Board\beep (0, 2020-12-04)
Board\beep\beep.c (727, 2017-04-19)
Board\beep\beep.h (236, 2017-04-19)
Board\flash (0, 2020-12-04)
Board\flash\flash.c (8863, 2017-01-12)
Board\flash\flash.h (2238, 2018-01-29)
Board\flash\新建文件夹 (0, 2020-12-04)
Board\flash\新建文件夹\flash.c (9018, 2017-01-12)
Board\flash\新建文件夹\flash.h (1890, 2016-11-18)
Board\HC-SR501 (0, 2020-12-04)
Board\HC-SR501\human_induction.c (534, 2018-10-18)
Board\HC-SR501\human_induction.h (382, 2018-10-18)
Board\JSN-SR04T (0, 2020-12-04)
Board\JSN-SR04T\jsn-sr04t.c (2914, 2018-09-29)
Board\JSN-SR04T\jsn-sr04t.h (586, 2018-09-29)
Board\key (0, 2020-12-04)
Board\key\key.c (2455, 2017-02-18)
Board\key\key.h (610, 2017-02-15)
Board\led (0, 2020-12-04)
Board\led\led.c (632, 2016-11-25)
Board\led\led.h (249, 2016-11-18)
Board\max6675 (0, 2020-12-04)
Board\max6675\max6675.c (1571, 2018-08-15)
Board\max6675\max6675.h (403, 2018-08-15)
Board\photoresistor (0, 2020-12-04)
Board\photoresistor\photoresistor.c (524, 2018-10-18)
Board\photoresistor\photoresistor.h (346, 2018-10-18)
Board\relay (0, 2020-12-04)
Board\relay\relay.c (567, 2018-10-18)
Board\relay\relay.h (296, 2018-10-19)
Board\ws2812 (0, 2020-12-05)
Board\ws2812\ws2812.c (7793, 2020-12-05)
Board\ws2812\ws2812.h (1167, 2020-12-05)
Chip (0, 2020-12-04)
Chip\chip (0, 2020-12-04)
Chip\chip\chip.c (426, 2018-01-29)
Chip\chip\chip.h (3287, 2018-01-29)
Chip\delay (0, 2020-12-04)
Chip\delay\delay.c (1404, 2016-11-17)
... ...

/** ****************************************************************************** * @file readme.txt * @author 王元 * @version V1.0 * @date 2016-4-4 * @brief 用于记录工程文档改变的日志 ****************************************************************************** * @attention * * 芯片型号: STM32F103VET6 * ****************************************************************************** */ 201***.12 xiaoyuan 该工程文件结构: USER-------stm32f10x.c,stm32f10x.h(中断服务函数);stm32f10x_conf.h(片上外设配置头文件);main.c(主函数) HARDWARE---存放用户编写的硬件资源程序 FWLIB------STM32F10x_StdPeriph_Lib_V3.5.0 (V3.5固件库) CMSIS------system_stm32f10x.c,core_cm3.c (核内外设函数文件);stm32f10x.h (外设寄存器定义和中断向量表定义) system_stm32f10x.h,core_cm3.h STARTCODE--启动代码 DOC--------工程说明文档 一些重要文件的介绍: core_cm3.c,core_cm3.h是位于CMSIS标准的核内设备函数层的CM3核通用文件,为芯片外设提供一个进入CM3内核的接口 system_stm32f10x.c,system_stm32f10x.h 设置系统的时钟和总线时钟。 stm32f10x.h 包含了STM32中寄存器地址和结构体类型定义,在使用到STM32固件库的地方都要包含这个头文件。 启动文件:是任何处理器在上电复位之后最先运行的一段汇编程序(用汇编语言为C语言的运行建立一个合适的运行环境) (1)初始化堆栈指针SP (2)初始化程序计数器指针PC (3)设置堆栈的大小 (4)设置异常向量表的入口地址 (5)配置外部SRAM作为数据存储器 (由用户配置) (6)设置C库的分支入口__main(最终用来调用main函数) 常用类型的一些定义,定义在stdint.h文件中: /* exact-width signed integer types */ typedef signed char int8_t; //字符型变量 typedef signed short int int16_t; //有符号短整形 typedef signed int int32_t; //有符号长整形 typedef signed __INT*** int***_t; /* exact-width unsigned integer types */ typedef unsigned char uint8_t; //无符号字符型 typedef unsigned short int uint16_t; //无符号短整形 typedef unsigned int uint32_t; //无符号长整形 typedef unsigned __INT*** uint***_t; 2016/12/7 V1.5

近期下载者

相关文件


收藏者