Program using Mickro C;
void main() {
TRISB=0;
PORTB=0; //Assign Portb as output port
while(1)
{
Led=1; //Led ON
Delay_Ms(1000); //Delay of 1 sec
Led=0; //Led OFF
Delay_Ms(1000); //Delay of 1 sec
}
}
Download C file here
Download Simulation File here
Download Hex file here
void main() {
TRISB=0;
PORTB=0; //Assign Portb as output port
while(1)
{
Led=1; //Led ON
Delay_Ms(1000); //Delay of 1 sec
Led=0; //Led OFF
Delay_Ms(1000); //Delay of 1 sec
}
}
Download C file here
Download Simulation File here
Download Hex file here
No comments:
Post a Comment