MikroElektronika PIC Microcontrollers PIC16 Manual de usuario Pagina 100

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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
Vista de pagina 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 171 172

Comentarios a estos manuales

Sin comentarios