ULP ADC conflit

User avatar
urbanze
Posts: 301
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

ULP ADC conflit

Postby urbanze » Wed Oct 17, 2018 1:28 am

I using ULP to do an interrupt in main core when adc value goes to below threshold value and after this, main core takes control of adc and do a better filter.

However, when main core stop usage of adc, ulp has "bricked" and dont work any more UNTIL ulp halt and main core start ulp again.

1. How main core can HALT the ulp? Using ulp_run() again or what?

2. Even if adc1_ulp_enable() is called in main core after adc has been used, ulp doesnt work. How can I use adc in ulp and main core without this "bug"? (this not a bug, I think).

Who is online

Users browsing this forum: Google [Bot] and 88 guests