Skip to main content
Visitor II
June 22, 2004
Question

Run from Main

  • June 22, 2004
  • 3 replies
  • 861 views
Posted on June 22, 2004 at 15:22

Run from Main

    This topic has been closed for replies.

    3 replies

    jliuAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:01

    I've solved the problem by including _psen in the equation for psel0

    jliuAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:01

    Sorry! the previous message has been posted by mistake. I actually got a problem with reading Main Flash. At 0xFFFB I store a number to indicate a valid firmware copy, and boot program read from there during power-up. I've found it's not doing very well in this way. Sometimes, in a chance of 1/4-1/5, my program doesn't get right value. It must be something wrong. Does any body here konw why?

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:01

    The 32xx devices have DDC memory mapped in XDATA space from 0xFF00 to 0xFFFF. If you haven't disabled the DDC RAM, it may be the cause for the problem.

    Put the following in your startup file:

    MOV A, #0 ;Disable DDC and DDC XRAM out of addr space

    MOV DDCCON, A