Skip to content

lib_Sleep

Patrick Lehmann edited this page Sep 8, 2015 · 1 revision

lib_Sleep_xxxMHz.psm

This library defines various delay functions from nanoseconds to seconds for a PicoBlaze running at 100 MHz.

Predefined libraries:

  • lib_Sleep_50MHz.psm
  • lib_Sleep_100MHz.psm
  • lib_Sleep_125MHz.psm

How to calculate a delay?

TODO TODO TODO

Public Functions

Name         | Arg0                      | Description
==============|==========================|======================================
__Sleep_n_cy | Delay in cycles: 6 to 255 | Delays execution for 6 to 255 cycles.
__Sleep_1_us | ---                       | Delays execution for 1 us.
__Sleep_n_us | Delay in us: 1..255       | Delays execution for 1..255 us.
__Sleep_1_ms | ---                       | Delays execution for 1 ms.
__Sleep_n_ms | Delay in ms: 1..255       | Delays execution for 1..255 ms.
__Sleep_1_s  | ---                       | Delays execution for 1 sec.

Note: __Sleep_n_cy delay from 120 ns (Arg0 = 6) up to 5,100 ns (Arg0 = 255).

Private Functions

Name         | Tmp5 & Tmp4 & Tmp3         | Description
=============|============================|=====================================
_Sleep_loop3 | Delay in iterations (23:0) | Loops until Tmp5 & Tmp4 & Tmp3 = 0

Clone this wiki locally