We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
#include<stdio.h> #include<reg52.h> #define XBYTE ((unsigned char volatile xdata*) 0 unsigned char dummy = 0x55; bit bitValue; void main (void) { bitValue = dummy & 0x40; XBYTE[0x1234]= 0x55; return; }
This program doesnt execute. plz query this program immediately.In the memory location the acc value is 0x55.
http://www.keil.com/books/8051books.asp www.8052.com/books.phtml
www.8052.com/tutorial.phtml
http://www.keil.com/support/man_c51.htm
And don't forget the so-called "bible" for the 8051:
Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf