This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Read 8-bits from GPIO without intervention from the CPU

Hi!

I am working with an nRF5340.

- Is it possible to somehow fill an array with values read from a GPIO OUT register using DMA or PPI?

- Is it possible to assign a function to an EGU event and call it at a GPIOTE event using PPI?

- Is it possible to benefit from the two cores of the nrf5340 and continuously sample data in one core and use the other core for other types of processing?

- Should the network core in the nrf5340  only be used for BLE matters?

- When we send a BLE message using functions such as bt_nus_send(), does it interfere with the running of the application CPU, or is it fully handled by the network core (nRF5340)?

If it is possible, please point me to an example code or hints on how to do it.

Thank you.

  • Hello Thiago,

    ''Using the SAADC is an interesting approach that I haven't thought about before. Is it possible to trigger 8-pin SAADC sampling tasks using a single GPIOTE event?''

    If you enable 8 channels in SAADC, one for each analog input and then trigger the sample task from GPIOTE, you will get result from all channels. But you will get result sequentially not simultaneously. GPIOTE has Port event (https://infocenter.nordicsemi.com/topic/ps_nrf9160/gpiote.html?cp=2_0_0_5_4) where an event can be generated from multiple input pints (for example you 8 analog input from SAADC) using the GPIO DETECT signal. 

    Thanks. 

    Best Regards,

    Kazi Afroza Sultana

Related