Editing Blinking Blues

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 61: Line 61:
  
 
In the image below the data from the arduino is being measured on channel 3, the test signal from the oscillator is on channel 5 and the rest are grounded or some sort of junk I have not gotten rid of. Click on it to go to a page with the image and then again to go full size which I did not do here to reduce the clutter.  This measurement shows the good pulses.  I typically use the sniffer cursors 1 to 4 for four consecutive good pulses.  A good pulse is one very near the desired one, for example aiming at 10.00 ms I may get 10.120 ms.  I actually expect some extra time ( perhaps not this much ) as there is some overhead in the routine.  A bad pulse is typically off by much more ( 11.360 ms ).  Bad pulses are identified by eye then tested using cursors 5 through 10.  In both cases the good and the bad are consistent across many periods.  The most consistent result is that bad pulses are separated by about 81.92 ms.  And 81.92 / 16 meg Hz = 256 * some power of 10.  That it comes out at the magic number of 512 seems very significant, but I am not sure why yet.
 
In the image below the data from the arduino is being measured on channel 3, the test signal from the oscillator is on channel 5 and the rest are grounded or some sort of junk I have not gotten rid of. Click on it to go to a page with the image and then again to go full size which I did not do here to reduce the clutter.  This measurement shows the good pulses.  I typically use the sniffer cursors 1 to 4 for four consecutive good pulses.  A good pulse is one very near the desired one, for example aiming at 10.00 ms I may get 10.120 ms.  I actually expect some extra time ( perhaps not this much ) as there is some overhead in the routine.  A bad pulse is typically off by much more ( 11.360 ms ).  Bad pulses are identified by eye then tested using cursors 5 through 10.  In both cases the good and the bad are consistent across many periods.  The most consistent result is that bad pulses are separated by about 81.92 ms.  And 81.92 / 16 meg Hz = 256 * some power of 10.  That it comes out at the magic number of 512 seems very significant, but I am not sure why yet.
 +
 +
  
 
[[File:measure1.gif|600x300px]]
 
[[File:measure1.gif|600x300px]]
Line 66: Line 68:
 
Bad pulse from the same test run ( or one with similar timings ):
 
Bad pulse from the same test run ( or one with similar timings ):
  
[[File:Measure2.gif|600x300px]]
 
  
 
Table of results, just a sample from one setup, much more data in the files.
 
Table of results, just a sample from one setup, much more data in the files.

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)