Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
Hi,
I have any question about HVPSFB project.
1.
VfbSetSlewed is first set 4V,but in C2 task set 2V.
Is it important to set first 4V?
And for example, is there problem to set VfbSetSlewed first 2V instead of 4V?
2.
VfbSlewRate is set 25600 as default.
It means that 25600*3.3/Gain/2^24 = 0.0244 [V] (default Gain is 0.206)
A2 task is 250[Hz].
So, voltage output slewrate is 0.0244*250 = 6.11[V/s].
Is it right?
3.
Output voltage value is set in C2 task
Gui_VfbSet = 12.2 *1024
When output voltage value change ~32[V](for example 30[V]),
the code rewrite
Gui_VfbSet = 30*512
When output voltage value change 32~64[V](for example 50[V]),
the code rewrite
Gui_VfbSet = 50*256
Is it right?
And,Is there anything else I need to change?
(I think K_fbout need to recaluculation)
4.
Comparator1 is used to compare ramp value and primary current.
This ramp is created by slope(default 40) and RAMPMAXREF(created by macro).
But I don't understand how DACval(default 1280) is used.
In 「DAC_Cnf.c」,
DACSOURCE register of comparator1 is selected 1,
So I think that DACVAL isn't used.