Mình biên dịch hoài mà sao cứ bị lỗi không biết như thế nào luôn
*============
*title :chuong trinh chop tat portB
*writer :
*hardware
ic16f877A
*compiler :ccs c
*============
#include < 16f877A.h>
#include <def_16f877A.h>
#fuses NOWDT,PUT,HS,NOPROTECT,NOLVP
#use delay (clock=20000000)
#use fast_io(b)
main()
{
trisb=0;
while(true)
{
portb=0xff;
delay_ms(500);
portb=0;
delay_ms(500);
}
}
*============
*title :chuong trinh chop tat portB
*writer :
*hardware

*compiler :ccs c
*============
#include < 16f877A.h>
#include <def_16f877A.h>
#fuses NOWDT,PUT,HS,NOPROTECT,NOLVP
#use delay (clock=20000000)
#use fast_io(b)
main()
{
trisb=0;
while(true)
{
portb=0xff;
delay_ms(500);
portb=0;
delay_ms(500);
}
}
Comment