Answer: The LCD user module in the PSoC Designer has two functions called LCD_Delay50u and LCD_Delay50uTimes. Using these functions, you can implement delays in multiples of 50uS. However, you will have to place the LCD user module in the project to use these functions. This would be a huge code overhead in projects that do not use LCD. The attached zip file has two files delay.asm and delay.h. These files have been created using the delay functions from LCD user module. The following is the procedure to use these files in your project.
1. Copy the delay.asm and delay.h files to the project folder of your PSoC Designer project. The files should be in the same folder as that of the .soc file.
2. Include these files in the project using the Project >> Add Files menu. Now, the delay.asm file will be available in the Source files folder and the delay.h in the Header files folder in the workspace explorer.
3. Include the delay.h header in the C source file
4. To implement a delay of 50uS, use the below function.
Delay50u();
5. To implement delay in multiples of 50uS use the Delay50uTimes function. For example, to implement a delay of 1mS, use
Delay50uTimes(20);



