MikroElektronika PIC Microcontrollers PIC16 Fiche technique Page 38

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 194
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 37
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
select case W
case 0
B = 1
PORTB = B
case 1
A = 1
PORTA = A
case else
PORTB = 0
end select
...
select case Ident
case testA
PORTB = 6
Res = T mod 23
case teB + teC
T = 1313
case else
T = 0
end select
4.1.3 GOTO Statement – Unconditional jump to the specified label
Syntax
goto Label
Description Goto statement jumps to the specified label unconditionally, and the program
execution continues normally from that point on.
Avoid using GOTO too often, because over-labeled programs tend to be less
intelligible.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/04.htm (5 sur 9)05/11/2004 02:15:36
Vue de la page 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 193 194

Commentaires sur ces manuels

Pas de commentaire