Propeller Freq Synth Output
greybeard
Posts: 65
Is this correct ?? or is something drastically wrong with my hardware.
There is a spin file provided with the software named "CTR.SPIN".· It is a very basic·program to uses the 2 counters in a single coge to provide a series of pulses from specific pins at a fixed frequency.·· I modified it only to introduce a 180 degree phase shift in the two outputs and to use the·BAR LED·(P16 and P17)·on the PROPAMP board. I then looked at the 2 outputs on an oscilloscope.· A bmp file of the ouput is attached.· Since I am currently interested in the 1 to 200 HZ output range, I set the frequency the frequency of interest to be 2 HZ.· Indeed, I do receive a 2 HZ output with one output shifted by 180 degrees.· Just what I was looking for.
Unfortunately,· I don't get a·well defined square wave,·Indeed no square wares at all,·just a series of capactive charge/discharge (undershoot/overshoot)curves with the proper frequency.· Not what I was expecting or wanting.· I was wanting to use the·propeller·as a programmagble signal generator for·input to other circuit testing but I can't do that with the signal it produces.· I removed the BARLED from the circuit just to be sure it was not influencing the ouput. Thre was no change.
So, Is this the correct?? is the hardware malfunctioning?? Is there a way around this problem??
Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:46:52 AM GMT
There is a spin file provided with the software named "CTR.SPIN".· It is a very basic·program to uses the 2 counters in a single coge to provide a series of pulses from specific pins at a fixed frequency.·· I modified it only to introduce a 180 degree phase shift in the two outputs and to use the·BAR LED·(P16 and P17)·on the PROPAMP board. I then looked at the 2 outputs on an oscilloscope.· A bmp file of the ouput is attached.· Since I am currently interested in the 1 to 200 HZ output range, I set the frequency the frequency of interest to be 2 HZ.· Indeed, I do receive a 2 HZ output with one output shifted by 180 degrees.· Just what I was looking for.
Unfortunately,· I don't get a·well defined square wave,·Indeed no square wares at all,·just a series of capactive charge/discharge (undershoot/overshoot)curves with the proper frequency.· Not what I was expecting or wanting.· I was wanting to use the·propeller·as a programmagble signal generator for·input to other circuit testing but I can't do that with the signal it produces.· I removed the BARLED from the circuit just to be sure it was not influencing the ouput. Thre was no change.
So, Is this the correct?? is the hardware malfunctioning?? Is there a way around this problem??
Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:46:52 AM GMT
Comments
Graham
So you have a series capacitor somewhere in your line... RC is around 0.1s