#include <REG668.H> #define on_XRAM() AUXR = 0x01 #define off_XRAM() AUXR = 0x02 sbit Led_Bit = P2^4; void delay(unsigned long us) { off_XRAM(); while (--us > 0); on_XRAM(); } void main(void) { #define POZ 4000 char xdata i[4300]; on_XRAM(); i[POZ] = 100; for (;;) { if (i[POZ] == 100) { Led_Bit = 1; delay(40000); Led_Bit = 0; delay(40000); } } }
please, you excuse me.actually not this is a question. this is an example. and to be writed by mistake here.
"so you have written some code, that's nice." Would've been nicer if (s)he'd bothered to read the instructions about posting code, so that it ws properly formatted...
so you have written some code, that's nice. Why do you post it here? Erik
http://www.keil.com/forum/tips.asp http://www.keil.com/support/man/docs/c51/c51_le_extdatamem.htm http://www.keil.com/support/man/docs/c51/c51_le_xdata.htm
View all questions in Keil forum