Smart Pin DAC
CON oscmode = $010c3f04 'standard stuff freq = 160_000_000 pub main | pMode, outVal, period, thePin clkset(oscmode, freq) thePin := 41 pMode := %0000_0000_000_10100_00000000_01_00010_0 'Random dither ' pMode := %0000_0000_000_10100_00000000_01_00011_0 'PWM dither period := 32768 outVal := 16384 asm dirl thePin wrpin pMode, thePin wxpin period, thePin wypin outVal, thePin dirh thePin endasm repeat
I have tried various values of period and outVal but my Propscope fails to trigger. If I turn the trigger off the Propscope measures -9 to 19 mVolts. I tried a simple program to toggle the pin at 1000 hz and the Propscope picked it up fine. I don't know what I am missing.