In my application I am having an UART and it malfunctions, seems data get abuse after the system wakes up from sleep.
I am setting the UART to sleep before getting the device to Sleep mode and let it wake up after PSoC gets up from sleep and when UART communication is needed. Can somebody kindly advice on where I am doing wrong?
Thnaks in advance.
There are some calls for the clocks before and after sleep-mode, did you use them, too?
Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file (do NOT use chrome, that still may not work).
Thanks for replying.
The basic steps am following are as follows.
Source file attached for clarity.
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
UART_1_Start(); // Initializes and enable UART
CyGlobalIntEnable; // Enable global interrupts.
/* Place your application code here. */
SendPackets(); // sends data packets on USART
CyDelay(10); // 100 sps needed 10 ms delay
Please let us know if your issues are resolved. If not please attach the complete project. I would like to know what is done inside the function SendPackets().