MikroElektronika PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 101

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 100
Syntax of while statement is:
while expression
statement_0
statement_1
...
statement_N
wend
Expression is tested first. If it returns True, all the following statements enclosed
by while and wend will be executed. It will keep on executing statements until
the expression returns False.
Eventually, as expression returns False,
while will be terminated without execut-
ing statements.
While is similar to do..loop until, except the check is performed at the
beginning of the loop. If expression returns False upon first test, statements will
not be executed.
while I < 90
I = I + 1
wend
...
while I > 0
I = I div 3
PORTA = I
wend
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
96
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
While Statement
Example
Przeglądanie stron 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag