Quantcast
Viewing all articles
Browse latest Browse all 4890

MicroPython • Re: Timing Various Events


Using an external RTC also mitigates the risk of power outage (coin cell needed for the RTC) which could happen when measuring for many weeks.

I wouldn't classify peeking the on-chip 64-bit elapsed microsecond time registers over-kill, is what I would do -

Thanks to both of you. I've been able to change the way I'm implementing this and will use the DS3231 determine when the events occur. Then once the event occurs I will use the Uptime() to determine how long the even stayed on. This will work. Thanks again for helping me with this.

@hippy, can you point me to where these memory locations for the pico are documented? Thanks.
TIMER_BASE = 0x40054000, TIMER_MSW = TIMER_BASE + 0x08, TIMER_LSW = TIMER_BASE + 0x0C.

Statistics: Posted by ww9317 — Sat Jan 20, 2024 8:07 pm



Viewing all articles
Browse latest Browse all 4890

Trending Articles