2024-10-01 04:31 AM
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?
Best regards,
Julian
Solved! Go to Solution.
2024-10-04 05:41 AM
Hi Julian,
For the first question, you can use swap mode to reverse the output by using the HAL function HAL_HRTIM_OutputSwapEnable(&hhrtim1, HRTIM_TIMERSWAP_D).
Currently, the protections are not in effect and the K value is essential to negate the additional gains introduced by the digital system, which you can find it in the controller coefficient section. The details of the calculation are mentioned in the application note.
When switching from channel C to channel D, please review the interconnection IPs and the trigger source.
The reference value should be set to myDcdc.vRamp.m_Out, which is the output of the function CNTRL_RampUpdate that manages the ramp-up.
Best regards,
Ayoub.
2024-10-04 05:41 AM
Hi Julian,
For the first question, you can use swap mode to reverse the output by using the HAL function HAL_HRTIM_OutputSwapEnable(&hhrtim1, HRTIM_TIMERSWAP_D).
Currently, the protections are not in effect and the K value is essential to negate the additional gains introduced by the digital system, which you can find it in the controller coefficient section. The details of the calculation are mentioned in the application note.
When switching from channel C to channel D, please review the interconnection IPs and the trigger source.
The reference value should be set to myDcdc.vRamp.m_Out, which is the output of the function CNTRL_RampUpdate that manages the ramp-up.
Best regards,
Ayoub.