Cypress Perform

Home > Support & Community
support.cypress.com     Bookmark and Share
Support & Community

Knowledge Base Article



Delay Time Accuracy of PSoC® 4 CyDelay Functions - KBA87094

Last Updated: 04/24/2013

Version: **
Question: How accurate is the delay time of CyDelay() and CyDelayUs() with PSoC 4?

Answer: The CyDelay functions, CyDelay() and CyDelayUs(), implement simple software-based delay loops. The loops are designed to compensate for bus clock frequency and other factors, but there are additional factors that may also influence the actual time spent in the loop. You can calculate the delay time of each function by counting up the assembly instruction implementation time.

If you need a more accurate method of calculating the delay time, consider using hardware (PWM, Timer, SysTick) mode.


Related Categories: PSoC 4200, PSoC® 4, PSoC 4100
Sunset Owner: JOZH; Secondary Owner: RLIU; Sunset Date: 09/21/13
Spec No: 001-87094; Sunset Owner: JOZH; Secondary Owner: RLIU; Sunset Date: 09/21/13