2023-10-31 03:30 AM
Hello,
now I try some equipment control which has function that watching some fault vibration, with using displacement sensor & ADC.
while I want to reduce ADC output noise and found that FMAC works pretty good.
but now the problem is, when ADC-DMA output set directly to FMAC WDATA register to off-load from Task-Main, FMAC gave some faulty value.
normally the value is between 0x0200~0x0d00 12bit value, but FMAC RDATA register sometimes shows 0x00c2 or 0xe304 or like that even in the 'silent' environment (expected value is about 0x0720 and stable, and almost as is if ramdomly software-break made with debugger).
the code is like following..
I wonder where am I wrong?