SX Sim
Will SX Sim allow me to look at what is being generated on the outputs of the SX28. I want to generate some rgb values and look at the outputs to see if I am getting what I need. I want to be able to do this without having to run it in the circuit, is that possible? I haven't used SX Sim yet so I wasn't sure what it's capabilities were.
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
Yes, open the I/O panel.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I got the SX Sim working and discovered that in the I/O window it only shows me the leds as either on or off and not various intensities. Also the window doesn't allow me to see values on the output pins unless i'm missing something. I want to see values on the outputs or it would be nice to see brightness changes in the leds.
Does SX Sim only work with Basic or should it work with both basic and ASM? I tried some code that Gunther sent me a while back and it doesn't work on the Sim.
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SXSim actually does not care about the language (SX/B or ASM). It reads and interprets the list file that is generated by SASM. When you use SX/B, the SX/B compiler generates an intermediate assembly file which is then passed over to SASM. IOW, no matter if you use SX/B, or ASM directly, there will always be a list file (provided there are no errors in your code) that SXSim reads.
Sorry, SXSim can't dim the LEDs in the I/O panel because the simulation runs much, much slower than a real SX application does. So when the real application toggles LEDs within milliseconds, SXSim will need seconds for the same code.
Actually, the simulated LEDs show the value of the outputs in binary. When an LED is on, this bit is 1, when it is off, the bit is 0. OK - I agree - this is not too comfortable, and this brings back to my mind one of the items on the SXSim TODO-list: The Variable Watch Window. If I only had the time...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
Sorry if seemed I may be complaining, I'm not! It is great that we can do simulation and I think it is a great program. I am a little confused that I am not able to use your code you wrote for me on the animal project not wanting to work, any ideas?
Bean,
Do you have any updates or can you post your code for the 16 ch PWM?
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
it is really strange - I tried to run the code for the animal project with SXSim, and I can verify that something seems to mess up SXSim. Shame on me that this happens with code I wrote
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
Thanks, I know your probably busy and you don't have to spend a bunch of time on it. I loaded SX Sim and that code you wrote just happened to be the first code I tried. At first I thought it was something I was doing. SX Sim is pretty straight forward once I had a good look around.
The animal project has worked out great and the other day I installed the led strips and they love the project, thanks for the code! I have donated my time to the rest of the project and building 5 more controllers and installing them in 4 rooms. This leaves an extra controller for a backup. I had some problems and finally came up with a solution for running the leds at 12 and the SX portion at 5. I will post a schematic etc. when I get one done.
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔