wwh2382 发表于 2020-10-25 22:24
2个_nop_()实现100k方波:
#include
#include
amandv 发表于 2020-10-25 23:30
PIC有带PWM的,直接设置输出就好。
univers 发表于 2020-10-27 10:41
定时器是最好的,不占用CPU资源
xiaoheiniu029 发表于 2020-10-27 09:35
用定时器就可以啊,或者直接硬件的PWM
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |