Exact match. Not showing close matches.
PICList
Thread
'[SX] SXB Square Wave'
2009\03\25@134350
by
Cenlasoftn/a
|
|
Hello,
I have been trying Terry's sweep code with no luck. I am sure it me doing something wrong. I used a scope and an LCR circuit to see if I could get to resonance. If I use the interrupt without sweep at one frequency, it works.
Device SX28, Oschs2, Turbo, OptionX, StackX
Freq 50_000_000
OutPin Pin RA.0 Output reload VAR BYTE
Interrupt NOCODE
OutPin =~ OutPin
Returnint reload
Program Start
Start:
FOR reload = 139 TO 111 STEP -1
PAUSE 1000 ' CHANGES SWEEP SPEED
NEXT
GOTO Start
End
I am trying to get resonance but the square wave produced is not accurate enough.
Thanks for any hints.
Cenlasoft
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=338356
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)
2009\03\26@085227 by HW_to_SWn/a
|
|
Can you post a schematic so we can see the circuit? I'm not clear by what you mean when you say "resonance". What do you want the output pin to do? What is your waveform period? (How much time do you want to see between two rising edges of your "outpin" waveform?)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=338356#m338536
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)
|
|
Cenlasoft,
It is very possible that you don't have enough resoultion to get resonance. But with a 50MHz clock you can only vary the ON/OFF time by a minimum of 20nSec.
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=338356#m338539
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2009
, 2010 only
- Today
- New search...