Timer issue solved at Rev 1069.
Ok, I didn't know that Reset works the opososite.- The RESET is working with the wrong logic. The way it is now, you need to keep HIGH for it to work (or not connect RST at all). However, the correct is - if you set RST as HIGH for two cycles, and return it to LOW, it will reset the program.
Yes, capacitors can slow down the simulation.- In previous releases, having a capacitor on the circuit really affected the timing. Now, it seems to be 99% better, however, I noticed it still affects the timing (you may clearly see this with the multiplexed 7 segment display example in the shared folder).
For me the Serial Monitor looks ok.- The "Open Serial Monitor -> USart1" option only works if a "SerialPort" peripheral is added to the circuit. If not, the simulation freezes. With the peripheral connected, the UART examples works, except for example 4.
Yes, I see.- When simulating the interrupt example programs (50 ms change on P1.0 on program 12 and 1 ms change on P1.0 on program 13), when connecting an oscope it seems the interval is (a liiiitle bit) higher than that. I'm not sure if this is related to the 8051 timing precision or if is something related to the simulation.
Yes, in Windows is like that.- The Asem-51 compilation is not working. For it to work, you need to change: \data\codeeditor\compilers\assemblers\asem51.xml to command="ASEM.exe". With that, the compilation works,
It is working for me...HOWEVER, when you make a change (e.g. change the number of delays calls in the delay program, compile it and upload it, the change is not reflected in the circuit. Note: The terminal says the compilation was OK.
FirmWare Uploaded to 8051
/media/user/soft/simulide/tests/MCU/mcs-51/8051-Diego/ASM and HEX files/pgm_02_delay.hex
Mapping Flash to Source... x lines mapped
Let me update the code for this.Regarding the implementation of external memory, do you have a simulation done with other MCUs so I can take a look before trying? Just want to see the used components, etc... (I remember seeing an example on the forum, but I can't remember exactly where).
It is working for me,The only detail is that P3.0 and P3.1 need to be connected to something (not necessarily a serial port - actually tested connecting both to GND).
Fast reply: no.Now a random question not related o 8051: Will v1.0.0 have all the MCUs like v0.4.15?
There is PIC16F877 that should work almost the same.I'm missing some of the MCU available, like the PIC16F877A.
I don't understand what you exactly mean by "not working".The UART is working fine (for all 4 examples), but pins P3.0 and P3.1 need to be connected to something (I thought they would work like the Arduino board, which work well even if the TX and RX pins are not connected). In the other hand, I don't see any problems connecting P3.0 and P3.1 to a SerialPort component.
Yes, that is a 10%, quite significant.So, the only detail I'm seeing that is pending now is the timing issue (program 11 generating a 1.1 s delay instead of 1 s.).
You can use PIC16F877 in the simulation, it should be Ok, at least in most cases.Yes, very similar indeed. Just using PIC16F877A in the simulations because I have one here.
Everything looks correct to me.So, the only detail I'm seeing that is pending now is the timing issue (program 11 generating a 1.1 s delay instead of 1 s.).
arcachofo likes this post
Ok, now I understand. Thanks for the detailed explanations.However, when I try to send data to the MCU from the Monitor (e.g. the number "1" + Enter so the LED on P1.0 is set to low), it doesn't work.
For the MCU to receive something from the Monitor, I need to connect something to P3.0, then it works (in the example below I'm connecting P3.0 to a GND, just to connect something...:
No no... Serial Monitor should always work.So, if I understand what you said, this is how it's supposed to work? To send something from the MCU to the Monitor I don't need to connect anything, but to send something from the Monitor to the MCU I need to connect something to the RX pi
Solved at Rev 1211.However, when I try to send data to the MCU from the Monitor (e.g. the number "1" + Enter so the LED on P1.0 is set to low), it doesn't work.
For the MCU to receive something from the Monitor, I need to connect something to P3.0, then it works (in the example below I'm connecting P3.0 to a GND, just to connect something...:
I have no idea, but maybe M-IDE has it's own executables, like Arduino has it's own avr-gcc and other avr tools.I don't know how M-IDE studio can execute it in this machine.
Go to page : 1, 2, 3
» Discussions About SimulIDE Simulator » Report Bugs » 8051 - The CNJE instruction with Registers make the simulation stop
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum