User`s manual
SetBit(PORTB,2)
' set PORTB bit RB2 to value 1
ClearBit(PORTC,7)
' clear PORTC bit RC7
TestBit(PORTA,2)
' returns 1 if PORTA bit RA2 is 1, and 0 if RA2 is 0
Lo(A)
' returns lower byte of variable A
' byte 0, assuming that word/integer comprises bytes 1 and 0,
' and longint comprises bytes 3, 2, 1, and 0
Hi(Aa)
' returns higher byte of variable Aa
' byte 1, assuming that word/integer comprises bytes 1 and 0,
' and longint comprises bytes 3, 2, 1, and 0
Higher(Aaaa)
' returns byte next to the highest byte of variable Aaaa
' byte 2, assuming that longint comprises bytes 3, 2, 1, 0
Highest(Aaaa)
' returns the highest byte of variable Aaaa
' byte 3, assuming that longint comprises bytes 3, 2, 1, 0
Delay_us(100)
' creates software delay equal to 100 microseconds.
Delay_ms(1000)
' creates software delay equal to 1000 milliseconds = 1s.
Length(Text)
' returns string length as byte
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
106
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
Examples