xong hay quá . Anh có thể giải thích thêm được ko do em tham khảo tài liệu "CSS tiếng Việt update I" thì có đoạn code sau :
Code:
#include < 16F877.h >
#device PIC16F877 *=16
#use delay (clock = 20000000 ) //delay,OSC=20 Mh
#byte portb = 0x06 //
#byte portd = 0x08 //
#INT_RB
Void RB_LED ( ) // haøm phuïc vuï ngaét
{
portd=portb;
}
void main ( )
{ set_tris_b ( 0xF0 ) ; // portB = 11110000 ,
set_tris_d ( 0x00 ) ; // portD = 00000000 ,
enable_interrupts ( INT_RB ) ; //
enable_interrupts ( GLOBAL ) ; //
while( true )
{ //
}
} //main
thì ko có việc trả về như anh nói ( R4 - R7 là các button )