cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 - XCUBE-DPOW

JuculianD
Visitor

Good day,


we are currently integrating the XCUBE-Dpow library but are running into multiple issues due to the lack of code documentation of the library.

- We are not using HTIM Channel-C but -D. After changing multiple entries in the template files of the library, the output works, but High/Low side are inverted.

-> Is it possible to invert the dutycycle (High connected to TD2, Low to TD1) or invert the output configuration?
We have tried but did not succeed.


-> none of the protection functions are integrated, it is unclear if the K value is needed and also, in the documentation the REF value is not inserted into the ADC, as well Channel C is hardcoded.
Also, in AN5496, it is missing that for the ramp to work the REF value in the Dpow library has to be set to:
(uint16_t)(vLoop.m_Out) - is this correct?


Is there any documentation I am missing? Many things are not intercompatible, and there also were some errors to fix after migrating to CubeFW 1.6.0


It would also be nice to know which of these functions are working and which not. Full Wave usage should automatically done by the deadtime/output configuration?

JuculianD_0-1727782220410.png

Best regards,


Julian

0 REPLIES 0