Problem with
For some reason the "Pause" command·is not·working in SXSim, I have not tried it on the SX chip yet and I don't know if it is going to be a problem or not.
If you can figure out what i am trying to do I would apprecate any input to make this code work better.
Thanks
Mark
Post Edited (jmevans) : 5/23/2007 5:44:50 PM GMT
If you can figure out what i am trying to do I would apprecate any input to make this code work better.
Thanks
Mark
Post Edited (jmevans) : 5/23/2007 5:44:50 PM GMT
Comments
The PAUSE command is FAKED! This is a common practice. It does not stop the processor from executing code like a SLEEP command would. It simply keeps the processor busy running through counting loops until the desired time has expired. Then it moves on to the rest of the code.
You might want to normally comment out all pauses when using SX-Sim. You will not be running through your code in real time anyway so there a few reasons to include them.
The bottom line is that the PAUSE command should run just fine in hardware but it can drive you nutty to run through all those time wasting loops under SX-Sim. This, of course, is no fault of SX-Sim as it is only running the instructions it was given.
I hope this helps.
- Sparks
You only have 1 PAUSE command. Just comment it out before running SX-Sim.
As sparks has stated, SX-Sim runs hundreds (maybe thousands) of times slower than the actual processor. So a pause is going to take forever in SX-Sim.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·