Datasheet
BUILT-IN ROUTINES
The mikroPascal PRO for AVR compiler provides a set of useful built-in utility functions.
The
Delay_us and Delay_ms routines are implemented as “inline”; i.e. code is generated in the
place of a call, so the call doesn’t count against the nested call limit.
The
Vdelay_ms, Delay_Cyc and Get_Fosc_kHz are actual Pascal routines. Their sources can be
found in Delays.mpas file located in the uses folder of the compiler.
- Lo
- Hi
- Higher
- Highest
- Inc
- Dec
- Delay_us
- Delay_ms
- Vdelay_ms
- Delay_Cyc
- Clock_Khz
- Clock_Mhz
- SetFuncCall
Lo
102
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroPASCAL PRO for AVR
CHAPTER 3
Prototype
function Lo(number: longint): byte;
Returns Lowest 8 bits (byte)of number, bits 7..0.
Description
Function returns the lowest byte of number. Function does not interpret bit pat-
terns of number – it merely returns 8 bits as found in register.
This is an “inline” routine; code is generated in the place of the call, so the call
doesn’t count against the nested call limit.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d := 0x1AC30F4;
tmp := Lo(d); // Equals 0xF4