ADC reading without blocking CPU
Posted: Fri Feb 01, 2019 5:30 pm
Hi everyone!
My problem is that ADC read with function adc1_get_raw() cause CPU block while ADC reading not ready, making ADC reading a blocking function. The idea is pull ADC register to read if ADC reading value is ready when CPU is in idle state.
Or, anyone knows the sequence and registers to handle to make this job?
Thanks
My problem is that ADC read with function adc1_get_raw() cause CPU block while ADC reading not ready, making ADC reading a blocking function. The idea is pull ADC register to read if ADC reading value is ready when CPU is in idle state.
Or, anyone knows the sequence and registers to handle to make this job?
Thanks