chao cac bac !Em viet doan code nhu sau :
Code:
(#include<16f877a.h>
#fuses HS,NOWDT,NOPUT,NOBROWNOUT,NOPROTECT
#use delay(clock=20000000)
#byte PORTA =0x05
#byte PORTB =0x06
#byte PORTC =0x07
#byte PORTD =0x08
#byte PORTE =0x09
#byte TRISA =0x85
#byte TRISB =0x86
#byte TRISC =0x87
#byte TRISD =0x88
#byte TRISE =0x89
//---------------------------------------------------------------
void main(void)
{
TRISA=0b000000;
TRISB=0xff;
TRISC=0xff;
TRISD=0xff;
TRISE=0xff;
while(1)
{
PORTa=0b111111;
delay_ms(1500);
porta=0b000000;
delay_ms(1500);
};
) khi em thu tren proteus thi chan RA4 khong co tin hieu ra ?
ngoai ra khi em nap cho pic de chay thu trên mạch thi khong thay led nhap nhay ?
bac nao biet nguyen nhân chỉ dum em vói!!!!!!!!
em cam on truoc nha