MikroElektronika PIC Microcontrollers PIC16 User Manual Page 88

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 171 172

Comments to this Manuals

No comments