You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What will it take to port the code to further MCUs?
For STM32 MCUs, it should be straight-forward. The existing code for USB PD processing (timer and DMA in input capture mode, processing of captured values, SPI for transmission etc.) should contain all the building blocks for implementing all other STM32 MCUs. The main challenge can be to figure out a working combination of pins, timers and timer channels as the STM32 is quite restrictive in this regard.
For other MCU families, it looks different. For certain ones I'm skeptical it can be done at all as they are missing crucial components such as some sort of input capture or a peripheral suitable for generating the CC signal.
What's your take? What would be a suitable approach for the ESP32 or the Raspberry Pico?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
What will it take to port the code to further MCUs?
For STM32 MCUs, it should be straight-forward. The existing code for USB PD processing (timer and DMA in input capture mode, processing of captured values, SPI for transmission etc.) should contain all the building blocks for implementing all other STM32 MCUs. The main challenge can be to figure out a working combination of pins, timers and timer channels as the STM32 is quite restrictive in this regard.
For other MCU families, it looks different. For certain ones I'm skeptical it can be done at all as they are missing crucial components such as some sort of input capture or a peripheral suitable for generating the CC signal.
What's your take? What would be a suitable approach for the ESP32 or the Raspberry Pico?
Beta Was this translation helpful? Give feedback.
All reactions