This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UDC90120 fraction hex calculations for PMBUS

Hello,

I'm writting Labview code to control via the PMBUS the UDC90120 controller. I need help with the correct math syntax on how to calculate in hex value the Duty Cycle, Frequency and Phase  when I add a fraction to the integer. For example when the duty cycle is 50.0%, Freq is 5.00 MHz and phase is 0.0 the correct hex value are as follows;

PWM_CONFIG_0 [MFR 17,0xE1]: wrote Duty Cycle: 50.0 %; Frequency: 5.00 MHz; Phase: 0.0 deg [0x0032004C4B400000] to RAM

When the duty cycle is 50.1%, Freq is 5.01 MHz and phase is 0.1 the correct hex value are as follows;

PWM_CONFIG_0 [MFR 17,0xE1]: wrote Duty Cycle: 50.1 %; Frequency: 5.01 MHz; Phase: 0.1 deg [0xE322004C72509B33] to RAM

Can you send me a breakdown of the math on how to calculate the decimal digit as shown above?

I'm stuck on this issue and cannot continue with my tests.

Thanks,

Norberto