This was a project I worked on a number of years ago, and have had a few people asking me for the code, so here it is. Not much going on really, its written in C and targets the pic18f2523 micro-controller. You can find out more about the project here:
DIY PSU Project here: https://gerrysweeney.com/fully-programmable-modular-bench-power-supply/