Keil Logo

A251: Setting the Address of Config Bytes


Information in this article applies to:

  • C251 All Versions

QUESTION

I'm using the 251 microcontroller with a 27C256 (32K EPROM) and I need to know where I should locate the configuration bytes in the START251.A51 startup code file.

ANSWER

The configuration bytes are located at FF:FFF8h and FF:FFF9h. However, since the 32K EPROM does not extend that high in memory, the config bytes must be located at the addresses read when FF:FFF8h and FF:FFF9h are asserted on the address bus.

In the 32K EPROM, these addresses are 7FF8h and 7FF9h. The code in START251.A51 should appear as follows:

$IF (CONFIGB)
CONFIG0         EQU     (WSA*20H)+(XALE*10H)+(RDRG*4)+(PAGM*2)+SRCM+080H
CONFIG1         EQU     (INTR*10H)+(EDF*8)+(WSB*2)+EMAP+0E0H

                CSEG    AT      07FF8H
                DB      CONFIG0         ; Config Byte 0
                DB      CONFIG1         ; Config Byte 1
$ENDIF

SEE ALSO

Last Reviewed: Wednesday, September 21, 2016


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.