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

code working in simulator but not when burnt.

hi
am using 89c55 and wrote a code in c which acquires data from a serial device performs calculations and the gives an alarm when an abnormality is detected. when i compiled i got as Program Size: data=9.0 xdata=7569 code=4140. i used large memory model.it works well when i checked with keil simulator but when i burnt into my uc i don see any output. iam new to uc's should i add any eeproms before burning?? please help me out. thanks in advance.

regards,
deepthi

Parents
  • That means that your program uses 9 bytes of DATA space and 6320 bytes of XDATA space and 3632 bytes of CODE space.

    Clearly, this means that your target system must provide at least 9 bytes of DATA space and at least 6320 bytes of XDATA space and at least 3632 bytes of CODE space.
    Whether these are provided internally on the chip, or with external chips on your board (or a combination of both) is really immaterial.

    PS

    If you're still not sure of the differences between DATA, CODE, and XDATA spaces, then you still haven't sufficiently studied the basics of the 8051 architecture - including the so-called "bible".
    See the links provided earlier.

Reply
  • That means that your program uses 9 bytes of DATA space and 6320 bytes of XDATA space and 3632 bytes of CODE space.

    Clearly, this means that your target system must provide at least 9 bytes of DATA space and at least 6320 bytes of XDATA space and at least 3632 bytes of CODE space.
    Whether these are provided internally on the chip, or with external chips on your board (or a combination of both) is really immaterial.

    PS

    If you're still not sure of the differences between DATA, CODE, and XDATA spaces, then you still haven't sufficiently studied the basics of the 8051 architecture - including the so-called "bible".
    See the links provided earlier.

Children