Mikroelektronika MIKROE-742 데이터 시트
Inc
Dec
Delay_us
104
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroPASCAL PRO for AVR
CHAPTER 3
Prototype
procedure Inc(var par : longint);
Returns
Nothing.
Description
Increases parameter par by 1.
Requires
Nothing.
Example
p := 4;
Inc(p); // p is now 5
Inc(p); // p is now 5
Prototype
procedure Dec(var par : longint);
Returns
Nothing.
Description
Decreases parameter par by 1.
Requires
Nothing.
Example
p := 4;
Dec(p); // p is now 3
Prototype
procedure Delay_us(time_in_us: const longword);
Returns
Nothing.
Description
Creates a software delay in duration of
time_in_us
microseconds (a constant).
Range of applicable constants depends on the oscillator frequency.
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.
doesn’t count against the nested call limit.
Requires
Nothing.
Example
Delay_us(1000); // One millisecond pause