This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

questions regarding saadc example

Hi

 

A few questions regarding the "saadc_pca10040" example:

  1. If I read one analog pin then what is the meaning of this matrix of values :

"static nrf_saadc_value_t     m_buffer_pool[2][SAMPLES_IN_BUFFER]; "

(less important but I wonder why to use typedef for uint16_t ->  nrf_saadc_value_t )

 

  1. I could not find the link between the ppi config to the adc channel in the " saadc_sampling_event_init()".

What if I would like to work with 3 adc inputs that each of their handler awake at different time periods via timer and ppi, how would this be implemented ?

 

  1. What is the meaning of the empty "timer_handler()" do we need to have it only for the "nrf_drv_timer_init(..)"

 

  1. Last for now, it’s a bit basic maybe, but I am not clear on the terminology of task and event in hardware or embedded use.. I know when working with free RTOS or any OS there are tasks, but here I am coding bare metal so what does it mean task and event, I know hardware Interrupts, which one is which ?
Related