mikroSDK Reference Manual
Delays Library

The Delays library provides functions set for managing delays in code. More...

Functions list

void Delay_Cyc (uint32_t cycles_div_by_10)
 Creates a delay based on MCU clock. More...
 
void Delay_us (uint32_t time_us)
 Creates a software delay in duration of time_us microseconds. More...
 
void Delay_ms (uint32_t time_ms)
 Creates a software delay in duration of time_ms milliseconds. More...
 
void Delay_Advanced_ms (uint32_t time_ms, uint32_t current_fosc_khz)
 Creates a software delay in duration of time_ms milliseconds (a variable), for a given oscillator frequency current_fosc_khz. More...
 
void Delay_1us ()
 Creates a software delay in duration of 1 microsecond. More...
 
void Delay_5us ()
 Creates a software delay in duration of 5 microseconds. More...
 
void Delay_6us ()
 Creates a software delay in duration of 6 microseconds. More...
 
void Delay_9us ()
 Creates a software delay in duration of 9 microseconds. More...
 
void Delay_10us ()
 Creates a software delay in duration of 10 microseconds. More...
 
void Delay_22us ()
 Creates a software delay in duration of 22 microseconds. More...
 
void Delay_50us ()
 Creates a software delay in duration of 50 microseconds. More...
 
void Delay_55us ()
 Creates a software delay in duration of 55 microseconds. More...
 
void Delay_60us ()
 Creates a software delay in duration of 60 microseconds. More...
 
void Delay_64us ()
 Creates a software delay in duration of 64 microseconds. More...
 
void Delay_70us ()
 Creates a software delay in duration of 70 microseconds. More...
 
void Delay_80us ()
 Creates a software delay in duration of 80 microseconds. More...
 
void Delay_410us ()
 Creates a software delay in duration of 410 microseconds. More...
 
void Delay_480us ()
 Creates a software delay in duration of 480 microseconds. More...
 
void Delay_500us ()
 Creates a software delay in duration of 500 microseconds. More...
 
void Delay_5500us ()
 Creates a software delay in duration of 5500 microseconds. More...
 
void Delay_1ms (void)
 Creates a software delay in duration of 1 millisecond. More...
 
void Delay_5ms (void)
 Creates a software delay in duration of 5 milliseconds. More...
 
void Delay_8ms (void)
 Creates a software delay in duration of 8 milliseconds. More...
 
void Delay_10ms (void)
 Creates a software delay in duration of 10 milliseconds. More...
 
void Delay_100ms (void)
 Creates a software delay in duration of 100 milliseconds. More...
 
void Delay_1sec (void)
 Creates a software delay in duration of 1 second. More...
 

Detailed Description

The actual source code of this library can be found in the installation folder of compiler, it is documented here for the sake of convenience.

Function Documentation

◆ Delay_Cyc()

void Delay_Cyc ( uint32_t  cycles_div_by_10)

Creates a delay based on MCU clock.

Parameters
[in]cycles_div_by_10Number of cycles divided by 10.
Returns
Nothing.

◆ Delay_us()

void Delay_us ( uint32_t  time_us)

Creates a software delay in duration of time_us microseconds.

Parameters
[in]time_usDelay value in microseconds.
Returns
Nothing.

◆ Delay_ms()

void Delay_ms ( uint32_t  time_ms)

Creates a software delay in duration of time_ms milliseconds.

Parameters
[in]time_msDelay value in milliseconds.
Returns
Nothing.

◆ Delay_Advanced_ms()

void Delay_Advanced_ms ( uint32_t  time_ms,
uint32_t  current_fosc_khz 
)

Creates a software delay in duration of time_ms milliseconds (a variable), for a given oscillator frequency current_fosc_khz.

Parameters
[in]time_msDelay value in milliseconds.
[in]current_fosc_khzCurrent system clock value in kHz.
Returns
Nothing.
Note
Generated delay is not as precise as the delay created by Delay_ms.

◆ Delay_1us()

void Delay_1us ( )

Creates a software delay in duration of 1 microsecond.

Returns
Nothing.

◆ Delay_5us()

void Delay_5us ( )

Creates a software delay in duration of 5 microseconds.

Returns
Nothing.

◆ Delay_6us()

void Delay_6us ( )

Creates a software delay in duration of 6 microseconds.

Returns
Nothing.

◆ Delay_9us()

void Delay_9us ( )

Creates a software delay in duration of 9 microseconds.

Returns
Nothing.

◆ Delay_10us()

void Delay_10us ( )

Creates a software delay in duration of 10 microseconds.

Returns
Nothing.

◆ Delay_22us()

void Delay_22us ( )

Creates a software delay in duration of 22 microseconds.

Returns
Nothing.

◆ Delay_50us()

void Delay_50us ( )

Creates a software delay in duration of 50 microseconds.

Returns
Nothing.

◆ Delay_55us()

void Delay_55us ( )

Creates a software delay in duration of 55 microseconds.

Returns
Nothing.

◆ Delay_60us()

void Delay_60us ( )

Creates a software delay in duration of 60 microseconds.

Returns
Nothing.

◆ Delay_64us()

void Delay_64us ( )

Creates a software delay in duration of 64 microseconds.

Returns
Nothing.

◆ Delay_70us()

void Delay_70us ( )

Creates a software delay in duration of 70 microseconds.

Returns
Nothing.

◆ Delay_80us()

void Delay_80us ( )

Creates a software delay in duration of 80 microseconds.

Returns
Nothing.

◆ Delay_410us()

void Delay_410us ( )

Creates a software delay in duration of 410 microseconds.

Returns
Nothing.

◆ Delay_480us()

void Delay_480us ( )

Creates a software delay in duration of 480 microseconds.

Returns
Nothing.

◆ Delay_500us()

void Delay_500us ( )

Creates a software delay in duration of 500 microseconds.

Returns
Nothing.

◆ Delay_5500us()

void Delay_5500us ( )

Creates a software delay in duration of 5500 microseconds.

Returns
Nothing.

◆ Delay_1ms()

void Delay_1ms ( void  )

Creates a software delay in duration of 1 millisecond.

Returns
Nothing.

◆ Delay_5ms()

void Delay_5ms ( void  )

Creates a software delay in duration of 5 milliseconds.

Returns
Nothing.

◆ Delay_8ms()

void Delay_8ms ( void  )

Creates a software delay in duration of 8 milliseconds.

Returns
Nothing.

◆ Delay_10ms()

void Delay_10ms ( void  )

Creates a software delay in duration of 10 milliseconds.

Returns
Nothing.

◆ Delay_100ms()

void Delay_100ms ( void  )

Creates a software delay in duration of 100 milliseconds.

Returns
Nothing.

◆ Delay_1sec()

void Delay_1sec ( void  )

Creates a software delay in duration of 1 second.

Returns
Nothing.