York Jong's Library tagged → View Popular
27 Jan 08
'Optimal' C Constructs for 8051 Microprocessors
-
On 8-bit systems, however, a subtle change in coding style can affect performance significantly.
-
This result comes about because the 8051 has a Decrement and Jump Not Zero (DJNZ) instruction that is designed for efficient looping. However, it requires the loop variable to count down-hence the for-loop that counts down gives the best performance.
- 8 more annotations...
11 Nov 07
CALLING BOOT LOADER FUNCTIONS FROM USER APPLICATION
-
use the linker (and the PUBLICSONLY directive) to include the public symbols from the BOOT loader absolute object module into the FLASH application. Then, the FLASH application may access the functions and global variables in the BOOT loader application
-
- Add the linker output file of the BOOT loader application to the FLASH application project. Since the linker output file typically does not have a file extension µVision2 may prompt for the type of file. Be sure to specify Object File.
- Specify the PUBLICSONLY linker directive for the linker output file of the BOOT loader object module. Right-click on the BOOT loader in the project window to open the context menu and select Options for File ... to open the Options - Properties dialog. Check Link Publics Only and the linker includes only the PUBLIC symbol information of the BOOT loader object module.
- 2 more annotations...
C51: SPLITTING CODE BETWEEN EPROM AND FLASH/EEPROM
-
You must create a jump table in the BOOT program that the EXT program can use to access the BOOT's functions. You may also just use the fixed addresses of the BOOT's functions, but that's more difficult.
-
You must create BOOT's functions that will be called by EXT in such a way that they don't mess up EXT's variable space. The easiest way to do that is to use the small model reentrant stack.
C51: RE-USE LIBRARY FUNCTIONS FROM A BOOT APPLICATION
-
The example in the application note implements a jump table that allows modifications of the BOOT part independent of the APPLICATION part. This technique even allows you to update the BOOT section after the APPLICATION has been released.
MON51 User's Guide: Requirements
-
von Neumann memory must be accessible from XDATA and CODE space. Typically, this is accomplished by connecting the /PSEN and /RD MCU signals to an AND gate and the output to the /RD line of a RAM.
-

1 - 10 of 10
Showing 20▼ items per page
Selected Tags
Related Tags
Sponsored Links
Ads by Google
Top Contributors
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
