"Ping" @ 80mhz what's my problem?
Has anybody tried running the ping.spin at 80mhz?· I put the logic into a repeat loop and set it up to run on cog1.· VGA is running on cog 0.· The ping runs for a round or two and then hangs in a waitpne.· It will run longer if I keep waving my hand in front of the ping·which keeps it from reaching the 20ms timeout.
Comments
Please use the "File-->Archive-->Project..." from within the Propeller IDE and post your code so that we can see what your code is doing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
·_clkmode = xtal1 + pll16x···· '80 MHZ
·_xinfreq = 5_000_000
Thinking it was a timing issue I rewrote this code in assembly.· Instead of waitpne I used test and if_e, if_ne.· The outcome is the same.· If you can get this to work.· I will assume it is hardware.
This runs stand alone.
It looks like you need to go through the first part of the Propeller Manual to see how programs are put together. Also consider going through some of the Propeller Education Kit tutorials.
Would you be able to tell me why the file I sent will not run stand alone? I assume it works in the demo, but I do not have an LCD display. I can also make it work with some VGA code I have. However, I would like the ping to run in a repeat loop so I can do some filtering on the signal. At some point I will merge the ping into some working VGA code with some other sensors. The ping.spin that I sent does run in stand alone. It just doesn't run at 80mhz.
Thank You
I am not sure why, but I had to add waitcnt(clkfreq / 10 + cnt) at the bottom of the repeat loop. Can you tell me why a wait period is required?