2018-02-08 05:17 PM
I use DFSDM(at
STM32L471RE
) to record voice.the human's voice is record OK. but I can not record the
heartbeat voice. it is about 500Hz.
So I want to read the PDM data and
analyze at PC.
How to get the PDM data?
I try to read DFSDM_CHyDATINR register, but can not read right value.
2018-02-09 12:00 AM
DFSDM_CHyDATINR is an input to the filters, not output.
To obtain raw data you need some deserializer external to DFSDM. The easiest perhaps is to feed the input data and clock to an SPI module, by connecting pins externally.
JW
2018-02-09 02:19 AM
Is your mean that I use SPI to read PDM data and write the PDM data to
DFSDM_CHyDATINR
to do filter?
2018-02-09 02:41 AM
No. You said:
So I want to read the PDM data and
analyze at PC.
I understood you want to analyze the raw data.
So I'd recommend to feed it in parallel to DFSDM and SPI, read out the filtered data from DFSDM and the raw data from SPI, and then process the raw data on PC and compare the results.
JW
2018-02-11 05:39 PM
Thanks.