I have a strange problem in my code. I cannot receive correct characters via the serial port if I write TH1=0xFD in my code. But if I write TH1=0xFE in my code, I can run the program correctly.
Why?
Appreciate any response!
athena tsai
-----------------------------------
#include "reg51.h" #include "stdio.h"
void main (void) { SCON = 0x50;
TMOD |= 0x20;
TH1=0xFE; TR1=1; TI=1; while(1) { unsigned char aaa;
aaa=_getkey();
putchar(aaa); } }
Yes I am being back :)
At the last Sir Erak was angry and I had to be standing in the corner with my hat on for a long time ;)
Ho don't worry Kalib, sir Erak is only mad at one specific individual (you know his nickname...).