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.
i checked everything the connection,and program and led.everything was perfect.but i got output for one led.but didn't get output for another led. what may be the reason?
what may be the reason? maybe something in the code that you do nnot show
Erik
once again thanks for ur reply eric. #include<reg51.h> void main(void) { P1=0x0c;
while(1) { if((P0 & 0x01)==0) { P1=P1 ^ 0x04; } if((P0 & 0x02)==0) { P1=P1 ^ 0x08; } } } this is what my code. ll u help me what on earth this make one port let glow and other not.
I expect that you read the datasheet for your processor just as carefully as you read the posting instructions for posting source code.
And I expect that you wrote your source code just as carefully as you wrote your source code comments.
When reading the compiler manual and getting started manual, did you intentionally decide that bit variables where useless or didn't you notice them?
And how did you verify that it isn't an output problem but instead an input problem? And how did you verify if any processor pins have an alternative function that may interferes with your intended use?
thanks for ur post. i'm just a biginner i told u. but no need of any register interruption for port actiovation i thought. what register u wnat me to set or modify. is there any register which involve this kind of port activation. ll u help me to do with this????