Skip to main content
Lep
Senior
December 30, 2022
Question

Acquisition of ADC four digital signals

  • December 30, 2022
  • 3 replies
  • 2603 views

I want to use stm32 to collect ADC digital data. The output of ADC is four digital signals D3, D2, D1, D0 and one clock signal CLK2. I need to add a digital low-pass filter (like fir),

how do I collect this 4bit digital signal...

Thanks in advance.

0693W00000Y76QtQAJ.png

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
December 30, 2022

​Which STM32? What ADC?

If it's 4 serial signals of a 4-channel ADC, ​use 4 SPI or SAI.

JW​

Lep
LepAuthor
Senior
December 30, 2022

MCU is STM32WB55RGV6. ADC chip is made by myself. It does not integrate spi iic and other interfaces. Its output is four digital signals, so I need to collect these four digital signals and conduct digital low-pass filtering.

S.Ma
Principal
December 30, 2022

Stn32 adc usually get analog inputs.

If your 4 signals are.digital, say pwms, you need digital timer.input capture channels to measure the duty cycle.

Lep
LepAuthor
Senior
December 30, 2022

Thanks for your help, input capture is able to measure duty cycle and measure frequency. Because this adc chip is made by myself, there is no interface such as spi, it is used to measure the ecg signal, how should I use it (for example, D3 has two consecutive samples of high level, and the edge capture is not very reliable). Excuse me Is there any example?

MM..1
Chief III
December 30, 2022

CLK2 value? Valid data timing?

Lep
LepAuthor
Senior
December 30, 2022

clk2 rising edge trigger, output 4bit data (D3 D2 D1 D0)

MM..1
Chief III
December 30, 2022

MHz value ??? and rename your question your problem isnt about ADC