cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Pin Setup

SLetter
Associate III

I am trying to set up 3 ADC.  I set PA4 to ADC1_INP18, PA5 to ADC2_INP19 and PF11 to ADC1_INP2.  Will this be something that works?  I am monitoring 3 lines (none NEED to be fast).

I'm not clear on how to set this up.  I am multiplexing several inputs onto these, all single ended.  I'm not sure how we will read the data yet, timed, interrupt driven or polled.  I am replacing a LPC3250 and re-implementing the functionality.

1 ACCEPTED SOLUTION

Accepted Solutions
raptorhal2
Lead

The simplest is all three channels on one ADC and DMA to a 3 word buffer with one start command.

See the ADC DMA examples provided with the HAL library.

View solution in original post

1 REPLY 1
raptorhal2
Lead

The simplest is all three channels on one ADC and DMA to a 3 word buffer with one start command.

See the ADC DMA examples provided with the HAL library.