hello sir i have 8 bit data which is coming from ADC0808 this is taken into the AT89c51 micro controller via port P0 now i want to transmit this serially so i have to place data into SBUF (for this please send the C code)....
and after that i received some data serially into SBUF now i ahave to show this data on port P2( for this please send the C code)
i used this code:
SBUF=P0 /// to transfer port dat into SBUF P2=SBUF // to transfer SBUF data into port 2<pre/> but it is not working
void serial_init() { TOMD
sorry it is TMOD only ... please tell me how to simulate in KEIL also.. please please if i am doing any wrong please let me know i read all the links also but i don't know where i am getting caught by this bug
I'm not a C51 guy, but it took me just about 35 seconds to find the following link in one of Andy's suggested links:
www.8052.com/.../Serial_com.asm