MikroElektronika PIC Microcontrollers PIC16 Bedienungsanleitung Seite 100

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 172
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 99
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
Syntax of do..loop statement is:
do
statement_1
...
statement_N
loop until expression
where expression returns a True or False value. The repeat statement executes
statement_1 ... statement_N continually, checking the expression after each itera-
tion. Eventually, when expression returns True,
do..loop statement terminates.
The sequence is executed at least once because the check takes place in the end.
I = 0
do
I = I + 1
' execute these 2 statements
PORTB = I
' until i equals 10 (ten)
loop until I = 10
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
95
page
Do..Loop Until Statement
Example
Seitenansicht 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 171 172

Kommentare zu diesen Handbüchern

Keine Kommentare