2023-08-31 05:01 AM - last edited on 2024-09-24 05:21 AM by Amel NASRI
Hello,
I'm trying to decode Manchester-encoded data by using the DFSDM peripheral on the STM32H7 MCU. I used a SW trigger Regular conversion on continuous mode through Filter0. But it doesn't work, and I didn't find any code examples or clear documentation about that.
The Manchester-encoded data frequency is about 20 kHz and Amplitude of 3.3V for 25usec to High and 0V for 25usec to LOW.
I'm using Nucleo-144 development board with STM32H723ZG MCU, and I configured channel 7 of DFSDM as follows:
-I tried to make the clock configuration as follows: SYSCLK =4MHz and Output clock predivider = 120, which that is to fit the Equation was mentioned in TRM of STM32H7
((CKOUTDIV+1 )xTsysclk) < Tmanchester clock < (2xCKOUTDIV x Tsysclk )
- Channel 7 Serial interface type and input clock phase --> Manchester with a rising edge
- The Final data right bit-shift = 8
- Channel offset =0
- Fosr = Iosr =1 to bypass filter and integrator.
and this my main function code: