MikroElektronika PIC Microcontrollers PIC18 Bedienungsanleitung Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 88
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 87 88

Kommentare zu diesen Handbüchern

Keine Kommentare