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.
While using the simulator, the values of i in the serial window are shifted by left 8 bits.
#include "stdlib.h" #include "stdio.h" #include "reg51.h" void main (void) { unsigned char i; SCON = 0x50; TMOD |= 0x20; TH1 = 221; TR1 = 1; TI = 1; for (i = 0; i < 8; i++) { printf("%x\n", i); } }
Check in other threads.
Reasonable questions are always answered with reasonable answers.
However, people comming with unreasonable requests - or as in this case ordering us to supply turn-key solutions to school work - will have to settle for answers about methodology.
No, I do not *feel* smart about myself, talking about encoding or decoding BCD numbers just as I'm not *feeling* smart about being able tie my shoe laces either.
I know that the net is full of trolls and intentionally irritating people. However, I have no good means to separate trolls from people actually wanting help. As long as a thread doesn't diverge into a constant series of invectives, I always try to suggest a suitable next step for solving a problem. If it's a troll, then the step isn't needed. If it's a fool, the step may be ignored. Now and then, the suggesition may be picked up and acted upton.
In the end, I don't care too much if a suggestion is acted upon or not. People who want advice will get it. People who want to ignore advice are free to ignore them. That is life.
Author Per Westermark
I like this guy.
then why do you call him a moron? to feel related to him?
Erik
Do you mean like how your mom and dad are related...?
related as in similar.Your question proves you are a moron. Get your head out of the gutter .... naah keep it there and stop throwing your trash here.
If you think this it the last time I reply to your insane babbles you are right.
PS To Per: I hope my post that this moron misunderstood, was clear enough that you, who have sense, could see that nothing was directed towards you.