Help! FREQOUT generates 2 freqencies
n2dnr
Posts: 3
Why do I get 2 frequencies on the oscilloscope from pin 0 through 56K resistor too ground with this example? I only want one at 2500 hz. from 1 second
' {$STAMP BS2}
' {$PBASIC 2.5}
'DO
FREQOUT 0, 1000, 2500
'PULSOUT 0 , 100
'PWM 0 ,128,255
' HIGH 0
' low 0
'TOGGLE 0
'LOOP
END
' {$STAMP BS2}
' {$PBASIC 2.5}
'DO
FREQOUT 0, 1000, 2500
'PULSOUT 0 , 100
'PWM 0 ,128,255
' HIGH 0
' low 0
'TOGGLE 0
'LOOP
END
Comments
I don't suppose one is 60Hz?
I think it could be. I think scope leads can pick up the 60Hz from induction.
Based on your other comment, I kind of doubt this is the issue. I don't suppose you could post a picture of the scope traces?
I'm not much of a BS2 person but hopefully someone else could help you out.
-Phil