techElder
Well-known member
I almost decided not to mention this, because I can't duplicate it right now. I'll just describe it in case someone else can expand on it.
In my regular project workspace, where I've been working on my 40X2 project. The workspace setting is set for a "40X2".
All programs have "#picaxe 40X2" directive and compile/download fine and accurate.
So, I wanted to test an interrupt problem in a separate program within my workspace. "New". New Tab; new file saved and all.
I created my separate program, but I forgot to add the "#picaxe 40X2" directive. I did add "#freq em32" and "setfreq em32".
I immediately notice how slow everything is. The "PAUSE 2000" were actually 2 seconds so I knew it was running at 8MHz instead of 32MHz.
I even went back and re-figured the pause numbers. I messed with other changes and saved the file several times and unloaded / reloaded the workspace several times with no change.
That's when I had the "Ah Ha!" moment and added the "#picaxe 40X2" directive and all was well.
To check that that was the problem, I commented out the "#picaxe 40X2" directive thinking that I would now be running back at 8MHz. Not so, Charlie.
Can't duplicate the slow experience now.
Something didn't read the workspace setting for "PICAXE Type", but only once?
Anyway, now I've mentioned it.
In my regular project workspace, where I've been working on my 40X2 project. The workspace setting is set for a "40X2".
All programs have "#picaxe 40X2" directive and compile/download fine and accurate.
So, I wanted to test an interrupt problem in a separate program within my workspace. "New". New Tab; new file saved and all.
I created my separate program, but I forgot to add the "#picaxe 40X2" directive. I did add "#freq em32" and "setfreq em32".
I immediately notice how slow everything is. The "PAUSE 2000" were actually 2 seconds so I knew it was running at 8MHz instead of 32MHz.
I even went back and re-figured the pause numbers. I messed with other changes and saved the file several times and unloaded / reloaded the workspace several times with no change.
That's when I had the "Ah Ha!" moment and added the "#picaxe 40X2" directive and all was well.
To check that that was the problem, I commented out the "#picaxe 40X2" directive thinking that I would now be running back at 8MHz. Not so, Charlie.
Can't duplicate the slow experience now.
Something didn't read the workspace setting for "PICAXE Type", but only once?
Anyway, now I've mentioned it.