MikroElektronika PIC Microcontrollers PIC16 Datenblatt Seite 39

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 194
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 38
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
program test
main:
' some instructions ...
goto myLabel
' some instructions...
myLabel:
' some instructions...
end.
4.2 Loops
Loop statements allow repeating one or more instructions for a number of times. The conducting
expression determines the number of iterations loop will go through.
4.2.1 FOR Statement – Repeating of a program segment
Syntax
for counter = initialValue to finalValue [step step_value]
statement_1
statement_2
...
statement_N
next counter
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/04.htm (6 sur 9)05/11/2004 02:15:36
Seitenansicht 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 193 194

Kommentare zu diesen Handbüchern

Keine Kommentare