MikroElektronika PIC Microcontrollers PIC18 Manuel d'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 88
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
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.
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 87 88

Commentaires sur ces manuels

Pas de commentaire