benjaminjnoack / Ian

She's lost control again
1 stars 0 forks source link

Slow ADC Reading #8

Closed benjaminjnoack closed 6 years ago

benjaminjnoack commented 6 years ago

The ADC is currently reading both sequences at a ridiculous rate. Slow it down to something sensible.

TASK
for (ever)
   takeFromQueue
   takeSemaphoreFromTimer
   disableTimerISR
   doReading
   enableTimerISR

ISR
if (taskIsWaitingOnSemaphore)
  releaseSemaphore
benjaminjnoack commented 6 years ago

Peripheral Delay Block?