You are here

ADC loses configuration after hibernate mode | Cypress Semiconductor

ADC loses configuration after hibernate mode

Summary: 2 Replies, Latest post by HDAndy on 15 Jul 2014 03:41 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_255096995's picture
2 posts


I've found that after entering hibernate mode and using the RX pin for the uart as a wakeup interrupt that the adc restarts with different settings.  I'm using an extra command at the moment to force it to reset which seems to work well as a work around but I wanted to check to see if this was an issue or if we might be doing something wrong.  

The hibernate code is pretty simple:

Rx_1_ClearInterrupt(); //allow next rising edge to be detected and wake up the chip




ADC_DelSig_SelectConfiguration(ADC_DelSig_CFG1, 1); //select config, start conversions


 At the moment the other modules appear to be restarting okay but they're all UDB modules so the adc is unique in that aspect.

Suggestions?  TIA

user_1377889's picture
9256 posts

There are functions for most components to be used before and after hibernation.

These are usually named Component_sleep() and Component_Wakeup(). Look into the appropiate datasheets.



user_255096995's picture
2 posts

 Thanks for highlighting that.  We found that the original project didn't have the *_PM.c files generated while for some reason my test project did and it worked fine.  Is there a way to enable those power management files to be generated?  I'm not aware of anything that would stop that feature from being enabled.

Log in to post new comments.