Is it possible to use PPI and RTC to turn the HFCLK on or off ? (external Xtal)
Example - something like this ... NRF_PPI->CH[9].EEP = (uint32_t) &NRF_RTC0->EVENTS_COMPARE[1]; NRF_PPI->CH[9].TEP = (uint32_t) &NRF_CLOCK->TASKS_HFCLKSTART; NRF_PPI->CHENSET = PPI_CHENSET_CH9_Msk;
NRF_PPI->CH[10].EEP = (uint32_t) &NRF_RTC0->EVENTS_COMPARE[2]; NRF_PPI->CH[10].TEP = (uint32_t) &NRF_CLOCK->TASKS_HFCLKSTOP; NRF_PPI->CHENSET = PPI_CHENSET_CH10_Msk;
Does the PPI system require the HFCLK External Xtal to be operational ?
Also, if I can't use PPI to do the above, is there another way to do it ? Perhaps using shortcuts ? As I understand, shortcuts are only for use within the same peripheral and so probably not.