That application note is for PSoC1. The cyutil.h file in a PSoC3 creator project automatically gives you: Delay(msec),DelayUs(microseconds), and DelayCycles(clock cycles). Just call Delay(1000); and you'll be in a software delay for one second.
As mentoined by lkoziarz the Knowledge base article is related to PSoC1. For PSoC3 however the delay functions are generated by PSoC Creator. The functions include:
- CyDelay(uint32 milliseconds), that generates delay in multiples of milliseconds
- CyDelayUs(uint16 microseconds), that generates delay in multiples of microseconds
- void CyDelayCycles(uint32 cycles), Delay by the specified number of cycles using a software delay loop.
- void CyDelayFreq(uint32 freq) , Sets clock frequency for CyDelay.
The references and explanation for the same can be found in the "System Reference Guide". The same can be accessed from PSoC Creator, Help --> Documentation --> System Reference Guide.
The definitions for these functions in PSoC creator can be found in "CyLib.c".
Thanks for clarifying the subroutine names, I was going from memory. When you get that version of PSoC Creator for Linux ready, it will be quicker for me to have it handy all the time... =)
Thank you for the responses. If I were to implement the same delay in PSoC5 I would then need to look at the System Reference Guide in order to find the appropriate function and header file?