本帖最后由 34af9uc 于 2020-5-9 15:12 编辑
应广单片机编程第四季02
应广单片机第四季,时间过的好快转眼已到5.1视频也做到了第四季从去年的十月一开始一直**到现在越来越感觉不会弄了这次要控制ADC,PWM,LCD都得上.加油.
视频地址: https://www.bilibili.com/video/BV1Y64y1M7Wv/
连接: <iframe src="//player.bilibili.com/player.html?aid=583006003&bvid=BV1Y64y1M7Wv&cid=188771995&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
#include "extern.h"
led_zuo bit pa.5;
led_a bit pa.0; //同bit led_a : pa.0;
void FPPA0 (void)
{
.ADJUST_IC SYSCLK=IHRC/4 // SYSCLK=IHRC/4
$ led_zuo out,high; //设置为输出,输出为1
$ led_a out,high; //设置为输出,输出为1
while (1)
{
led_a =1;
led_a =0;
}
}
|