Please do not create many posts for the same issue.
I believe your problem lies with the BLE Advertisement timeout. You have it set to 30 seconds fast advertising and then afterwards 30 seconds slow advertising (See picture). Together you have a 1 minute timeout.
What happens after this 1 minute timeout? Your code has the following:
if(CYBLE_STATE_DISCONNECTED == CyBle_GetState())
So your system hibernates after one minute of advertising. While hibernating the system turns off and your Timer/PWM/WDT are going to stop working.
The solution to this problem depends on the purpose of your device.
You could turn off the timeouts in the BLE settings but your device will permanently advertise, which could use a lot of power when it is not needed.
You could add a button to start advertising again and remove the Hibernate function from the timeout.
You are using deep sleep mode where the high frequency components do not run.
thanks for your reply sir.
i made a lowpowerimplementation() api as commented then how device go to deep sleep mode
thanks for your reply sir
i made CySysPmHibernate(); as commented ,now it,s working.
once again thanks alot.
See timer datasheet for explanation of "Period". Must be set to 0 in your case.
can you tell me the formula to calculate the required timeperiod.
i worked for pic controllers in that
in case psoc4 bles what is the formula to calculate the time period
can you please tell me the formula for calculating dutycycle of PWM.
Thanks in advance.