MikroElektronika PIC Microcontrollers PIC16 Manuale Utente Pagina 100

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 171 172

Commenti su questo manuale

Nessun commento