hey frnds. i have problem in sending char serially in normal program. when i try to send 'A' it sends '?'. this is my program. plz help me guyz to solve this problem.
#include<reg51.h> void main(void) { TMOD=0x20; TH1=0xFD; SCON=0x50; TR1=1; while(1) { SBUF='A'; while(TI==0); TI=0; } }
.. when you do not give complete information which chip manufacturer and ALL numbers and letters? which clock speed ? do you have a MAX232(equivalent) between the uC and the PC?
nobody can help you .... and few want to help you when you use gibberish like "plz help me guyz".
Erik
i'm using at89c51. and simulate in proteus using vertual terminal. and also use max232 connection. All number and letters send different output like symbols. clock speed is 12MHz.
Are you sure that they are sending "different"?
Maybe it's the receiving end which is interpreting them differently?
Think about how that might happen...