The Event Generator Unit peripheral is new in nrf52. There is a basic description in the current manual of nrf52, but not much can be inferred as to how to use it. Could an example be provided for a typical use case. Thanks!
The Event Generator Unit peripheral is new in nrf52. There is a basic description in the current manual of nrf52, but not much can be inferred as to how to use it. Could an example be provided for a typical use case. Thanks!
Don't really see the problem here - the manual is clear - it's short because the thing is so incredibly simple. It works like any and every other TASK/EVENT on any other peripheral on the chip, trigger the task to generate the event, read/poll the event, enable or disable the interrupt for each one of the 16 events in each instance of the EGU, write an interrupt handler for that EGU and handle the set interrupts.
Well, somehow its not yet clear for me.
Starting off with the the handlers in the startup asm file, the IRQ handlers are defined for SWIx_EGUx_IRQHandler, where x is 0 to 5. Also same for the the enum IRQn_Type in nrf52.h. How can the interrupt handler for the other EGUs (>5) and with other peripherals apart from SWI be setup?
For example, if I want to use the EGU to call the RTC Compare interrupt with a specific priority, how can I do that?
It'll be helpful if these specific questions like these are answered.
Well, somehow its not yet clear for me.
Starting off with the the handlers in the startup asm file, the IRQ handlers are defined for SWIx_EGUx_IRQHandler, where x is 0 to 5. Also same for the the enum IRQn_Type in nrf52.h. How can the interrupt handler for the other EGUs (>5) and with other peripherals apart from SWI be setup?
For example, if I want to use the EGU to call the RTC Compare interrupt with a specific priority, how can I do that?
It'll be helpful if these specific questions like these are answered.