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.
my code
#include <REGX51.H> void delay(unsigned int i) { unsigned int j,k; for(j=0;j<=i;j++) { for (k=0;k<=1275;k++); } } void main (void) { unsigned char mybyte; P1=0xff; mybyte=P1; delay(250); P2=mybyte; }
Not being a C51 guy, I don't know if it is related, but the OP is missing an infinite loop in his main function...