Skip to main content
SLetter
Associate III
February 20, 2024
Solved

ADC Pin Setup

  • February 20, 2024
  • 1 reply
  • 1406 views

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.

This topic has been closed for replies.
Best answer by raptorhal2

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.

1 reply

raptorhal2
raptorhal2Best answer
Lead
February 20, 2024

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.