Hey,
1. Yes, i can run the nfc_low_power_mode demo on my custom board and it works.
2. I use the PN7642 as standalone uC without a host. It has no real RTC, so i have to put it into sleep periodically. E.g i want to sleep 5 minutes with max sleeping time of 2650 ms -> repeating sleep cycles: 113. So: wake up, check the AO-RAM counter variable. If counter variable is less than 113, count up and sleep again.
3. When i use the API Functions in my Project, like PN76_Sys_PCRM_EnterStandby(), the IC never sleep max time (2,65 s), but is reaching the AO-RAM counter and then runs through code as expected. There is no error when calling the API. Its much to fast.
4. Yes, MAX_SLEEP_TIME is 1023.
5. I dont want to use LPCD Mode. There has to be a possibility to just use the WUC alone together with GPIO3.
Beside this API Problem I tried to not use API Function. Instead I use the PCRM Regs directly. Now the uC sleeps one time (2,65 s), but no second time. I think because something is preventing it, to enter sleep again.
I safed:
- BOOT1 (0x00000000)
- BOOT2 (0x00022000 -> GPIO3 and WUC),
- BOOT3(0x00000000),
- PCRM_INT_ENABLE (0x4060010),
- PCRM_INT_STATUS (0x00000104) in EEPROM.
I tried to clear BOOT2 through PCRM_SYS_STBY1_CTRL_CLR_BOOT_REGS_MASK and PCRM_SYS_STBY1_CTRL_CLR_RST_STS_MASK, but it has no effect. PCRM_INT_STATUS is a mystery, cause GPIO2_ZIF is not enabled?!
How can i delete prevention flags?
Regards,
Oliver