Try this ...
You'll need to put the piezo circuit on a CCP pin.
It should sound something like this ... http://support.melabs.com/DT/Piezo.wmaCode:Freq VAR WORD Main: FOR Freq = 3000 TO 4000 STEP 10 HPWM 1, 127, Freq PAUSE 1 NEXT Freq GOTO Main
Try this ...
You'll need to put the piezo circuit on a CCP pin.
It should sound something like this ... http://support.melabs.com/DT/Piezo.wmaCode:Freq VAR WORD Main: FOR Freq = 3000 TO 4000 STEP 10 HPWM 1, 127, Freq PAUSE 1 NEXT Freq GOTO Main
DT
Bookmarks