Question about ext mode sleep and Timer0.

9 posts / 0 new
Last post
liyang
Offline
Last seen:5 months 3 weeks ago
Expert
加入:2014-09-24 11:51
Question about ext mode sleep and Timer0.

hello, Dialog.
When I use ext mode sleep ,my Timer0 couldn't work .
when the da14580 enter into sleep , whether the timer associated register will be clean?

liyang
Offline
Last seen:5 months 3 weeks ago
Expert
加入:2014-09-24 11:51
我有厕所ked the AN-B-025

我有厕所ked the AN-B-025 and the UM-B-006. I know that when the da14580 enter into the ext sleep, the time0(Is it the BLE Timer?)is aliving. So why it doesn't work? (note that : when I emulate the project in the keil MDK the timer0 works well .But when I burn the .img into the external Flash the timer0 couldn't work. but the other functions works well)

liyang
Offline
Last seen:5 months 3 weeks ago
Expert
加入:2014-09-24 11:51
can you tell me why?

can you tell me why?

JE_Dialog
Offline
Last seen:1 month 5 days ago
Staff
加入:2013-12-05 14:02
Hello Liyang,

Hello Liyang,

Timer0 is switched off in deep sleep and extended sleep mode.

There is a good thread below about using timer in sleep mode .

http://support.dialog-semiconductor.com/smarttag-ref-design-sleep-mode-during-advertising-vs-timer

BR JE_Dialog

liyang
Offline
Last seen:5 months 3 weeks ago
Expert
加入:2014-09-24 11:51
OK ,thanks !!! .

OK ,thanks !!! .
while the timer0 is switched off in sleep mode . An other question: I thought the timer0 could used to be a RTC (although it may not precise ),but now it doesn't work. Could I find some other solutions to instead of it. how about the API lld_evt_time_get() ? I find it get counter for the addr 0x4000001C ,Is it based on a timer?

liyang
Offline
Last seen:5 months 3 weeks ago
Expert
加入:2014-09-24 11:51
ok! I think you have solve my

ok! I think you have solve my issue .on #4 floor .
THANK YOU !

JE_Dialog
Offline
Last seen:1 month 5 days ago
Staff
加入:2013-12-05 14:02
Hello Liyang, can you tell us

Hello Liyang, can you tell us what you are trying to achieve with timer and then we might be able to advise you faster ?

BR JE_Dialog

liyang
Offline
Last seen:5 months 3 weeks ago
Expert
加入:2014-09-24 11:51
haha,I think you have solve

haha,I think you have solve all my questions on floor #4!

brent_zheng
Offline
Last seen:1 month 1 week ago
加入:2017-08-25 07:50
Can I keep periph on to

Can I keep periph on to enable timer0 working during ext sleep? for example:
SetBits16(PMU_CTRL_REG, PERIPH_SLEEP, 0);