Sleep/Wakeup versus Stop/Start

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Is the intention of Component_Sleep() and Component_Wake() to be used only when the chip is placed in sleep mode? It might be a stupid question but the datasheets don't make a distinction between Sleep/Wakeup and Stop/Start so I experimented with each set and found that Sleep/Wakeup does not result in the component resuming operation whereas Stop/Start do.

   

See the attached code. Currently, Stop/Start are commented out. The datasheet, for example that for WaveDAC8, states that calling Sleep() calls SaveCofig(), which should save the current configuration and then calling Wakeup() should then restore the configuration saved when calling Sleep() beause RestoreConfig() is called.

   

When using Stop()/Start() I call WriteCompare() to ensure that the counter is loaded with the count value set at Stop(). The System Reference Manual and the datasheet states that Stop() is called by Sleep() and Start() is called by Wakeup(). However, Sleep()/Wakeup() don't seem to resume operation even when I uncomment WriteCompare(). I must reset the chip.

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Yes, the intention of Component_Sleep() and Component_Wake() to be used only when the chip is placed in sleep mode.

View solution in original post

0 Likes
2 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Yes, the intention of Component_Sleep() and Component_Wake() to be used only when the chip is placed in sleep mode.

0 Likes
Anonymous
Not applicable

Thank you!

0 Likes