User manual

Robotics experiment with PIC microcontroller l 21
void main()
{
TRISB.F3=0; // Set RB3 as Output
while(1) // Infinite Loop
{
PORTB.F3=0; // LED_ON
Delay_ms(500);
PORTB.F3=1; // LED_OFF
Delay_ms(500);
}
}
Listing 1-1 : Blinking LED test code
1.5.6 Type the C program following the Listing 1-1.
1.5.7 Click on the Build Project button or Ctrl+F9 for compiling the project file.
1.5.8 Observe the error message at the Output window. If all is correct, it would
show the size of usage program memory of this file and Success message.
After that, you will get the HEX file; Blink_LED.HEX for downloading to the
Robo-PICA’s controller board; RBX-877V2.0.