hello every one. I need read ADC with 33.3 KHz by simulink to set GPIO output
any suggestion
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-23 8:40 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-25 3:52 AM
Hi @hadi_bijari ,
You can start with a TIMER that starts ADC conversion at the desired rate.
Use also DMA that can help performance.
Then add a ADC block for end of conversion interrupt that can call a GPIO block.
At the end, check with an oscilloscope that the CPU frequency of the STM32 device you are using is fast enough to handle interrupts correctly.
Demonstrations are available in the STM32-MAT/TARGET tool for some parts of this use case (ADC, TIMER).
Regards.
Cyril
