Forum Replies Created
-
AuthorPosts
-
kittythakurParticipant
1. how do u kno data fm UART1_Read() is gud?
hello dear, actaully m running my code in proteous bcoz my hyperterminal and com port is not wroking well.i m using virtual terminal with receiving and transmiting pin.,so when i give input on rx pin through virtual terminal ,it stores in UART1_Read().after that i use UART1_Write(UART1_Read()); i get the same string on tx virtual terminal which i sent on rx pin.thats why i m saying UART1_Read is gud . but i want to store the string from UART1_Read() to in a array,so that i can print data on lcd with the help of ” for loop. “
2. what exact prblem u get – compile err? run err? what? same problem every time (with same SMS txt) or no?
i think, you got my problem now, . i m unable to store received data into a array
here inchar=UART1_Read();
#define led1 PORTC.F1#define led PORTC.F0#define RS PORTC.F2#define RW PORTC.F3#define EN PORTC.F4unsigned char inchar;unsigned int i=0,j,k;char buffer[80] ;void Tx();void cmd( unsigned char x){PORTD=x;RS=0;RW=0;EN=1;delay_ms(100);EN=0;}void dat ( unsigned char x ){PORTD=x;RS=1;RW=0;EN=1;delay_ms(100);EN=0;}void int_lcd(){cmd(0x38);cmd(0x0e);cmd(0x06);cmd(0x80);}void rcv (){inchar=UART1_Read(); // i want to store received string in a buffer .and after that i want to print on lcd .i m having problemdelay_ms(100);while(inchar!=’