I already have the 5351 running as a VFO and I may in the future also have the 5351 run the BFO.
In my sketch I assumed that the "BFO" value meant 12 MHZ, the IF. It should be the actual BFO frequency, in my case 11.9986 MHZ. This would explain why my readout was off slightly.
You don't really need to set up a DDS BFO. The on-board BFO oscillator is strong and stable. What you probably should do is adjust the BFO frequency directly to suit your ears. (See message #19317; that is what I did with my unit). You can setup a DDS BFO as well, of course; I know you now know how to do that. --? If using a DDS, remember to disable the on-board oscillator; probably removing the BFO crystal is the simplest solution. In fact, injecting the DDS signal into where the crystal was is probably the best all-around solution as to where to do it. Mind the signal level and the frequency. Experiment for the best sound.
You probably SHOULD use a DDS for the VFO. Remember to disable the on-board VFO oscillator by removing L4.