m5stack / M5Core2

M5Core2 Arduino Library
MIT License
262 stars 113 forks source link

Core2 can get RTC interrupt signal? #105

Closed LunarEclipse49 closed 1 year ago

LunarEclipse49 commented 1 year ago

Hello, all

I want to get millisec for logging some data with RTC.

I tried using millis() first. But if using ms = millis()%1000, sometime happen problem like this.

...
10:10:5.750
10:10:5.950
10:10:5.150   <-
10:10:6.350
10:10:6.550
...

To solve this, I found the idea that using RTC interrupt from this site (sorry, this is in Japanese) I remaking it for M5Core2, but I have no idea to get interrupt signal from BM8564. Would you give me which pin can listen to BM8564?

felmue commented 1 year ago

Hello @LunarEclipse49

unfortunately the interrupt signal from the BM8564 is not connected to a GPIO of the ESP32. (It is only connected to the PEK of the AXP192 which allows the BM8564 to power on the M5Core2.)

Please have a look at the schematic here.

Thanks Felix

LunarEclipse49 commented 1 year ago

I'm glad to get your reply, Felix.

Thank you for link to schematic. Now I understanding it.

This is my first time to use such a device. It was difficult to understand them before starting development...