Another approach, a little better precision. Note Vref is +/- .1%, if you need
more accuracy use external Vref.
This approach uses multiturn pot.
Again one chip solution. Right hand window shows resources used/left, very little was used of chip.
Other stuff onchip, multipoles in most cases...