![](https://1.bp.blogspot.com/-wrsrNJiYwas/WKIMps7ypQI/AAAAAAAAAOQ/iYiFPAl-oQ8eO4PDVwiH90eDIWcfTMb3QCLcB/s320/midi_clock.jpg)
Sending 5 different divisions on the digital outs, and generating sine waves from a stepped value table at 3 different periods on the PWM outs. The Sine LFOs are in the range of 0 to +5V. Assembly code for the PIC18F2431 is here. Audio sample using 2 of the clock outs and the sine across a 1/4 note here.