Is it possible to synchronize PWM on-time with an SPI reading?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-10-19 6:15 AM
I'm using Timer 1 from nucleo L432KC in PWM generation mode at 5 kHz to control a DC motor.
I'm using this current sensor TLI4970-D050T4 which gives a digital data via SPI. Is there a way I can synchronize current sampling with the PWM on-time?
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-10-19 7:32 AM
You could perhaps find a DMA/TIM combination to write a value to the SPI->DR
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
