2020-02-06 09:56发布
xiongh 发表于 2013-6-15 15:28 看手册: 12.2 PORTA 寄存器
millwood0 发表于 2013-6-21 04:28 "成流水灯了!" If you don't try to read and understand the datasheet, you will never learn.
最多设置5个标签!
- while(1)
- {
- RC0=1;
- delay500ms();
- RC1=1;
- delay500ms();
- RC2=1;
- delay500ms();
- RC3=1;
- delay500ms();
- RC4=1;
- delay500ms();
- RC5=1;
- delay500ms();
-
- RA0=1;
- delay500ms();
- RA1=1;
- delay500ms();
- RA2=1;
- delay500ms();
- RA3=1;
- delay500ms();
- RA4=1;
- delay500ms();
- RA5=1;
- delay500ms();
- }
复制代码只有RA5 RC4 RC5,是一直亮的,RA0~4,RC0~3,都变成流水灯了!If you don't try to read and understand the datasheet, you will never learn.
我在看了,只是还没看懂,毕竟刚接触PIC,很多术语以前做STC51都没有的,一时没理解。 millwood0真是全能的,在很多版区都能看到你出现哦。Excuse me
,Where are you from
?我英文比较差,只能用中文回复你,希望你能看得懂,抱歉 。
OK! after add " ANSELA = 0x00; ANSELC = 0x00;" in. 原来是数字口,模拟口的问题。很好,顺便学下英文。thank you!
一周热门 更多>