MikroElektronika PIC Microcontrollers PIC16 Manuel d'utilisateur Page 88

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 87
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
' You cannot mix signed and unsigned data types in
' expressions with logical operators:
dim Sa as short
dim teA as byte
dim Bb as word
dim Sbb as integer
dim Scccc as longint
main:
teA = teA + Sa
' compiler will report an error
teA = teA and Sa
' compiler will report an error
' But you can freely mix byte with word . .
Bb = Bb and ( not teA)
' . . and short with integer and longint.
Scccc = Sbb xor Sa or Scccc
end.
PIC microcontrollers are optimized to work with bytes. Refer to PIC MCU
Specific.
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
83
page
Runtime
Behavior
Vue de la page 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 171 172

Commentaires sur ces manuels

Pas de commentaire