中微单片机开发
中微单片机开发遇到的问题和解决方法
dailin 2012
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
中微CMS8S5880 PWM输出 占空比可调
废话不多直接上代码 main.c #include "uart.h" #include "pwm.h" #include "led.h" #include "stdio.h" #include "sys_time.h" #include "timer.h" #include "my_iic.h" void main() { UART0_INIT(); //initinal UART PWM_init(); LED_INIT(); Timer2Init(); set_pwm原创 2020-12-09 08:54:54 · 1914 阅读 · 0 评论 -
中微 CMS8S5880 timer2
废话不多直接上代码 main.c #include "uart.h" #include "pwm.h" #include "led.h" #include "stdio.h" #include "sys_time.h" #include "timer.h" #include "my_iic.h" void main() { UART0_INIT(); //initinal UART PWM_init(); LED_INIT(); Timer2Init(); set_pwm原创 2020-12-09 09:02:16 · 1307 阅读 · 0 评论 -
51单片机printf 为0
在51单片机上使用printf函数、以下几点: 1. 无符号16位数格式符用%d或者%u,千万不能加字母“l”,否则会出错2. 32位数据格式符必须加字母“l”,否则会出错3. 8位数据格式符要加字母“b”,例如%bd、%bu等 ...原创 2021-01-13 14:03:05 · 451 阅读 · 0 评论 -
中微CMS8S5880 串口输出
废话不多直接上代码 main.c #include "uart.h" #include "pwm.h" #include "led.h" #include "stdio.h" #include "sys_time.h" #include "timer.h" #include "my_iic.h" void main() { UART0_INIT(); //initinal UART PWM_init(); LED_INIT(); Timer2Init(); set_pwm原创 2020-12-09 08:51:28 · 2125 阅读 · 2 评论 -
中微CMS8S5880 LED灯点亮
废话不多直接上代码 main.c #include "uart.h" #include "pwm.h" #include "led.h" #include "stdio.h" #include "sys_time.h" #include "timer.h" #include "my_iic.h" void main() { UART0_INIT(); //initinal UART PWM_init(); LED_INIT(); Timer2Init(); set_pwm原创 2020-12-09 08:47:39 · 1228 阅读 · 0 评论
分享