Counters stop working when I use the parallel LCD
I'm experimenting with the Propeller's counters to try to figure out how they work. (I've managed to make a sawtooth wave!)
The only display device currently near my workstation is the parallel LCD on my PDB. Unfortunately, it seems that whenever I use my LCD object it causes the counter to stop working. I've attached a project that illustrates the problem. If you un-comment the lines in synth.spin that use the lcd object, the counter stops having an effect on pins 0 & 1.
If someone can take a look at this and tell me what I'm doing wrong, I'd appreciate it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
The only display device currently near my workstation is the parallel LCD on my PDB. Unfortunately, it seems that whenever I use my LCD object it causes the counter to stop working. I've attached a project that illustrates the problem. If you un-comment the lines in synth.spin that use the lcd object, the counter stops having an effect on pins 0 & 1.
If someone can take a look at this and tell me what I'm doing wrong, I'd appreciate it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
Comments
Is there any way you can re-arrange the hierarchy, so that "Debug_Parallel_Lcd.spin" is at least at the same level as "FrequencySynth.spin"?
It might be that the "Debug_Parallel_Lcd.spin" uses one or both of the CTR's in some way that is clobbering the "FrequencySynth.spin" or vise
versa. Remember that when you set a frequency with one of the CTR's using "FrequencySynth.spin",·it does NOT launch another COG. If there
is a collision with the CTR's,·you may need to either launch "Debug_Parallel_Lcd.spin" or "FrequencySynth.spin" into a COG of it's own.
This is just a speculation, I'm not at a computer right now that I can test your code with.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Southern Illinois University Carbondale - Electronic Systems Technologies
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control