I was wondering if it was possible to disable simulation of the ports? I am not using them for serial communication and I want to use these bit addressable registers another way. I am simulating a M8051EW and everytime that I reset the micro-controller the ports all reset to 0xFF. I don't want the micro-controler to reset these registers. I want them to keep the same value that they had before the reset occured. How do I turn off simulation of different device features?
"That is exactly the way the hardware works." Erik, Are you sure it's the way this hardware works? However, the OP ask that the ports keep their current state after a reset (not that they do not get reset to '1' ot '0'). There is a 0,0001% possibility that some stupid developer of a deviate would leave the port pins random after a reset. Visualize a medical device with random outputs after a power glitch OUCH. No, I can not be sure, however, if, for every answer one should analyze whether the OP is using a deviate, rather than a derivative, it would be very difficult to answer 87% of the posta. Now, say that my answer is wrong, there would be nothing wrong with the OP going through this very exxcruciating process of a 30 second look at the datasheet to find out and post that for this (it would then be a ) deviate, the ports are not reset to a known state. Erik
"There is a 0,0001% possibility that some stupid developer of a deviate would leave the port pins random after a reset. Visualize a medical device with random outputs after a power glitch OUCH." But, again, this is an IP core - so he's probably also developing the rest of the system, and can design it accordingly. "if, for every answer one should analyze whether the OP is using a deviate, rather than a derivative" You could always just say, "I don't recognise that part - I'll just ignore it..."