当前位置:网站首页>Using domestic MCU (national technology n32g031f8s7) to realize pwm+dma control ws2812
Using domestic MCU (national technology n32g031f8s7) to realize pwm+dma control ws2812
2022-06-11 11:05:00 【Jiahe Tiancheng】
One 、 Technical background
Previously migrated to STM32 To do it MCU, But these two years STM32 Outrageous prices and supply conditions directly dissuade most Internet enterprises . domestic MCU Manufacturers also seize the opportunity , Seize the market rapidly , National technology is a typical manufacturer .
In many cases , A consumer intelligent hardware product in the home category , It is necessary to have a status light . We may have learned at the beginning 、 The lead type is used RGB, Long like this :

It usually has 4 One pin :
Anode / The cathode ( According to Gongyang / Common Yin type );
R(red);
G(green);
B(blue).
For miniaturization, of course , such RGB There will also be various patch types .
If you want to control it , We usually configure it RGB Three pin current limiting resistor , According to the level state of different pins, the luminous color of the status lamp is realized . But there's a problem : Color is not easy to control accurately , and IO More resources :3 individual .
and WS2812 Achieved through 1 individual IO send out 24bit Data to accurately control the color function of lamp beads and the miniaturization of patches . So it has high application value .
Before that STM32 Through PWM+DMA To control WS2812 The function of , There are also many online tutorials , No more details here . This time I come to realize the present N32G031xxxx Implemented on PWM+DMA To control it .
边栏推荐
- 数字藏品系统app源码
- Implementation of competition scoring system based on C language
- Mxnet construction and implementation of alexnet model (comparison with lenet)
- Characteristics and classification of creation mode (single case, factory)
- Jerry's acquisition of ble to check the causes of abnormal conditions such as abnormal code reset [chapter]
- 杰理之获取 BLE OTA 双备份升级(只能用于 4Mbits 以上的芯片)【篇】
- 小 P 周刊 Vol.08
- Summary of English thesis reading knowledge
- IIHS tsp+ annual safety list released: 7 EVs were selected, and there are common problems in pedestrian AEB
- 正大期货主账户预4 周三信息汇总
猜你喜欢

985高校博士因文言文致谢走红!导师评价其不仅SCI写得好...

Wechat cloud development al short video one click face changing applet source code

杰理之获取 BLE 区分复位跟唤醒【篇】

Campus lost and found applet source code can be used for graduation design

校园失物招领小程序源码可作毕业设计
使用 Feign 实现声明式 REST 调用

Mn Monet pagoda host system v1.5 release

PHP仿网易云原创音乐分享平台网站源码

地铁路线图云开发小程序源码和配置教程

基于C语言实现比赛评分系统
随机推荐
Droid-slam: depth vision slam for monocular and binocular rgbd cameras
NFT将改变元宇宙中的数据所有权
Exness: the progress of Russia Ukraine negotiations is limited, and the RBA's decision remains unchanged
6. how to automatically generate header file dependency -m
白屏时间、首屏时间
使用Yolov5训练自己制作的数据集,快速上手
Unity font spacing
SAP Spartacus Reference App Structure
Jerry's acquisition of ble OTA dual backup upgrade (can only be used for chips above 4mbits) [article]
Taking the cooperation between different banks as an example, the construction of small program ecology
IIHS tsp+ annual safety list released: 7 EVs were selected, and there are common problems in pedestrian AEB
DROID-SLAM: 用于单目双目RGBD相机的深度视觉SLAM
Jszip get the file of the specified file in the uploaded zip package
Writing the program into the microcontroller can control the forward and reverse rotation of the motor more conveniently and quickly
Wechat cloud development al short video one click face changing applet source code
MN梦奈宝塔主机系统V1.5版本发布
New Zealand is one of the best countries for road safety
Bad navigation category bar code version
正大期货主账户预4 周三信息汇总
Remote monitoring project offline log specification