__xdata u16 adc_values[100]; // stored in external RAM __data u8 led_counter = 0; // fast access in internal RAM
The 8051 has Harvard architecture with separate memory spaces. IAR supports five memory models: iar embedded workbench for 8051
// SFR bits __sfr __no_init volatile unsigned char P0 @ 0x80; __sfr __no_init volatile unsigned char P1 @ 0x90; __sfr __no_init volatile unsigned char P2 @ 0xA0; __sfr __no_init volatile unsigned char P3 @ 0xB0; __xdata u16 adc_values[100]; // stored in external RAM
#pragma location = "MY_SEGMENT" __xdata int my_var; __xdata u16 adc_values[100]
IAR Embedded Workbench for 8051 is a high-performance integrated development environment (IDE) used for developing firmware for microcontrollers based on the classic 8051 architecture.