MikroElektronika PIC Microcontrollers PIC16 Manuale Utente Pagina 88

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 171 172

Commenti su questo manuale

Nessun commento