********* delay routines *************************

I am now urgant.

Thank you. But I must need ready and tested routines for slow frequence (31kHz, 125kHz, 250kHz etc.).

Please for me.

Parents
  • Hello Urgant,

    The function I use is:

    void DelayForSpecifiedTimeInMicroSeconds(int TheDelay);
    

    And when I want to have the delay specified by frequency I use the function:

    int ConvertFrequencyToPeriod(int TheFrequency);
    

    Just insert this into your code - But don't bother compiling it unless you are prepared to spend time investigating the probable errors the linker might report.

Reply
  • Hello Urgant,

    The function I use is:

    void DelayForSpecifiedTimeInMicroSeconds(int TheDelay);
    

    And when I want to have the delay specified by frequency I use the function:

    int ConvertFrequencyToPeriod(int TheFrequency);
    

    Just insert this into your code - But don't bother compiling it unless you are prepared to spend time investigating the probable errors the linker might report.

Children
More questions in this forum