Skip to main content
marc4
Associate
July 13, 2006
Question

PAGE REGISTER AND SWAP LOGIC BIT 8

  • July 13, 2006
  • 3 replies
  • 735 views
Posted on July 13, 2006 at 12:01

PAGE REGISTER AND SWAP LOGIC BIT 8

This topic has been closed for replies.

3 replies

wek2
Associate II
May 17, 2011
Posted on May 17, 2011 at 11:50

Is there no evidence of changing the page register in the listfiles (especially startuXX.lst)?

Alternatively, doesnt' the external ram definition overlap with the PSD register space, so it gets cleared during the startup clear-everything routine?

Jan Waclawek

marc4
marc4Author
Associate
May 17, 2011
Posted on May 17, 2011 at 11:50

I am using the upsd3234. I have written a boot loader that sets bit 8 (swap) in the page register. When bit 8 is set my second program is loaded into boot space. I am sure that the second program resets the page register to 0 and bit 8. This causes my boot loader to start again. I did a test with a simple ASM program as the second program and this functions correct so my conclusion is that Keil C51 resets the page register.

Paging is not enabled in uVison because once loaded into boot space it does not require any further paging at this stage. Any advice ?

marc4
marc4Author
Associate
May 17, 2011
Posted on May 17, 2011 at 11:50

Fixed the problem. :) C51 did not change or reset the page but an error in the code when swapping page caused the page register to change. (I did not expect this because the test with a small ASM program was found working correctly.)