I need some help regarding how to give input through serial port. I can see the output of serial port in UART #1.
char rxcharacter(void) { char character;
SBUF = _getkey (); //SBUF = 'G';
while(RI != 1);
character = SBUF; RI = 0;
return character; }
SCON = 0x10; /* recieve enabled mode 0 ---> 8-bit shift register with baud rate = 1MHz */ the validity of the above will depend on 1) clock speed 2) derivative
Erik
i am using 8051AH. crystal frequency = 12MHz
As SM0 = 0 and SM1 = 0 ---> serial mode 0 ===> it will work as a 8 bit shift register with a baud rate = 12MHz /12 = 1MHz
You are saying my baud rate is very high?