Skip to main contentTutorials
Algorithm graph: building a digital power loop
FavoriteAdvanced~25 minAlgorithm graphDigital powerGS32 Key steps
- 1.In the algorithm graph editor, drag in 3 "variable read" blocks (VIN/VOUT/IOUT) and the buck_boost_cvcc block
- 2.Connect by port dtype (f32 same-type direct); wire EN/VSET to enable and setpoint
- 3.Set target output voltage / current limit / compensation parameters (fixed-point raw) in the property panel
- 4.The DUTY output drives the power stage via "variable write"; wire IERR/FALT to the alarm UI
- 5.After passing the export validation gate, flash the GS32 board and verify the duty waveform on a scope