This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bug in Keil debugger?

Hi guys. I'm trying to simulate a code for MSC1210 (Texas Instruments). The problem is that I have serious doubts about the results of the simulation since I've detected the following situation:

I make an external memory access, which, as you all know, uses the Port 0 as both Address and data bus (the address will be latched to preserve its value for the address lines of the memory). The fact is that it succeeds, in spite of I forced several Port0 pins to LOW, simulating that there is a ground connected to them.

The simulation of this "forcing" is done by cliking the corresponding checkbox of that pins in the "Port0" simulated peripheral window.

I hope you help me. If you need any clarifying note tell me.

Thanks, and excuse my wrong english.

Parents
  • Rafa;
    I think that you need to look more closely at Erik's
    link at http://www.keil.com/forum/docs/thread14553.asp.

    Look at the method of storing the address in a transparent latch such as a 74HC573. Also look at a simple decoder such as a 74HC138 to get the proper memory selection and finally, you do not mention the LCD controller type but you might need to add simple logic to make Read/Not Write and E terms for your LCD controller. But after all is said and done, YOU NEED TO USE MEMORY MAPPING.
    Sorry about the yelling but it's very important that you get off to good start on the proper path instead of attempting to by-pass the features of the 8051.
    Bradford

Reply
  • Rafa;
    I think that you need to look more closely at Erik's
    link at http://www.keil.com/forum/docs/thread14553.asp.

    Look at the method of storing the address in a transparent latch such as a 74HC573. Also look at a simple decoder such as a 74HC138 to get the proper memory selection and finally, you do not mention the LCD controller type but you might need to add simple logic to make Read/Not Write and E terms for your LCD controller. But after all is said and done, YOU NEED TO USE MEMORY MAPPING.
    Sorry about the yelling but it's very important that you get off to good start on the proper path instead of attempting to by-pass the features of the 8051.
    Bradford

Children