mmahdim / STM32F4-Scope

7.2 MSa/s Digital Oscilloscope Using the STM32F429
GNU General Public License v3.0
31 stars 1 forks source link

waveform display #2

Closed gunbatt closed 8 months ago

gunbatt commented 8 months ago

Hello! I'm trying to implement an oscilloscope on the STM32F407. ADC 1,2,3 in triple mode, 7.2Mbps. Display 240x320 ili9341 fsmc I'm sending a signal from the generator. A pure sine wave is obtained only at certain frequencies. At other frequencies there are some chaos fragments. What can be done to solve it? I can make a video.

Best regards, Sergey

mmahdim commented 8 months ago

Hello Sergey, I didn't quite understand. Are you trying to implement my code, or are you developing your own project from scratch? My best guess is that your triggering has problems. Best, Mahdi

gunbatt commented 8 months ago

Hello Mahdi, I trying to developing my own project. And I think you right, that this is a trigger, but mabe something else. I just set adc 1,2,3 to triple mode, dma in circular mode, and try to view waveform on display. Maybe you take a look at this link: https://disk.yandex.ru/i/vYFP8YcS9oSo8g https://disk.yandex.ru/i/lMUaabJM9Gc2Bg

Best regards, Sergey

mmahdim commented 8 months ago

It's really hard to tell without seeing the code, and unfortunately, I don't have the time to review your code. But it seems like a trigger issue to me. You can check my code to see the way that I implemented my triggering. I think it was using a GPIO pin as an interrupt. I hope you can figure it out. Best, Mahdi

gunbatt commented 8 months ago

OK. Thank you!