Hello,
I am sending simple example which periodically (1kHz) read all analog inputs and each values writes to memory by DMA and periodically print read values from memory to usart.
ADC was configured:
- All inputs except IN2, IN3 (pins used by usart), Temperature sensor, Vrefint Channel, VDDA Channel, VSSA Channel
- 8 bit resolution
- DMA Continuous Requests Enabled
- External trigger conversion source as Timer 3 Trigger Out event
- Other configurations stay as defaults
- DMA mode circular, Peripheral to memory, Data Width as Byte
TIM3 is configured as:
- Clock Source as Internal Clock
- Counter Period to 47 999
- Trigger Event Selection TRGO as Update Event
SYSCLK was configured to 48 MHz
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.