Re: FREQOUT 4mhz
Don't know if PWM is my only option. FREQOUT can't be used and SOUND is a sine wave right?
wrong
from manual
SOUND outputs TTL-level square waves. Thanks to the excellent I/O characteristics of the PIC MCU, a speaker can be driven through a capacitor. The value of the capacitor should be determined based on the frequencies of interest and the speaker load. Piezo speakers can be driven directly
I just put in --
PWM portc.4,127,6500
Piezo is 6500 hz. Hearing nothing.
pwm does not do what you have expected
@4mhz clock pwm output is 6500 cycles @200 hz
a 6500hz resonator can be driven at frequencies other than its resonant frequency
your chip has a pwm/ccp module , you could use HPWM
to get maximum noise you can drive the resonator bipolar mode between to output pins antiphased
I notice those resonators you linked have no connecter leads , how good is your soldering ?
they don't work if they have been cooked
Warning I'm not a teacher
Bookmarks