Read time from ULP?
Posted: Mon Jan 29, 2018 10:51 pm
Hi,
Is it possible to read the current time from a ULP program? I want to use the example pulse counting program but extend it to record when each pulse was detected. However, it looks like only the bottom 16-bits of the timer can be read, which would mean that I can't get the complete RTC time.
If I can't read the RTC, I wonder whether I could increment a counter every time the ULP program runs. Multiplying by the period of the ULP wakeup would give me a rough approximation of when the pulse was detected. Any other way to do it?
thanks,
dan.
Is it possible to read the current time from a ULP program? I want to use the example pulse counting program but extend it to record when each pulse was detected. However, it looks like only the bottom 16-bits of the timer can be read, which would mean that I can't get the complete RTC time.
If I can't read the RTC, I wonder whether I could increment a counter every time the ULP program runs. Multiplying by the period of the ULP wakeup would give me a rough approximation of when the pulse was detected. Any other way to do it?
thanks,
dan.