MikroElektronika PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 100

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag