Datasheet

BUILT-IN ROUTINES
The mikroC PRO for AVR compiler provides a set of useful built-in utility functions.
The Lo, Hi, Higher, Highest routines are implemented as macros. If you want to use these
functions you must include built_in.h header file (located in the inlclude folder of the compil-
er) into your project.
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 C routines. Their sources can be found
in Delays file located in the uses folder of the compiler.
- Lo
- Hi
- Higher
- Highest
- Delay_us
- Delay_ms
- Vdelay_ms
- Delay_Cyc
- Clock_kHz
- Clock_MHz
- Get_Fosc_kHz
Lo
106
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroC PRO for AVR
CHAPTER 3
Prototype
unsigned short Lo(long number);
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