ronkpatell
Member level 5
- Joined
- Feb 2, 2012
- Messages
- 85
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- ahemdabad
- Activity points
- 1,894
Post code. Try this code. It will echo back the sent characters. If you send A then you will receive another A in RealTerm.
can u tell me how can i check my PC serial port in working correct or wrong?Did you check the half duplex? If it still doesn't work then your MAX232 circuit is damaged.
Try putting the uart receive code in interrupt routine.
Did you check the half duplex? If it still doesn't work then your MAX232 circuit is damaged.
Try putting the uart receive code in interrupt routine.
that oxco can i directly give from hyperterminal or have add in main program?After you write first line on lcd then you have to send lcd command 0xC0 so that next data is printed on line 2 and if you want to print again then clear the display and give lcd command 0x80 for first line and then it prints on line 1.
hi jaySend some code like '1' and '2' from PC to MCU and write code such that if '1' is received 0x80 cmd is sent to lcd and if '2' is received 0xc0 cmd is sent to lcd.
but i have confusion where that code will be add in program.plz tell meif mcu receives '1' then lcd_cmd(0x80) is called and when mcu receives '2' lcd_cmd(0xC0) is called.
Post your latest code. I will answer tomorrow.
but i have confusion where that code will be add in program.where is the code which checks if 16 characters are received and the code which checks if lcd line1 or line 2 has to be selected?
where is the code to return to line 1 when line 2 is filled?
i was added this code but rightnow that another data didn't sow on lcdYou are checking if h>=15. also add if h >=31 lcd_cmd(0x80)
i was also try with this code void string_lcd(unsigned char *ptr)I see that you use j to increment the character position. You have done that for line 2 but not for line 1. when H is >= 31 then j should be set 0 and use lcd_cmd(0x80+j) and j++;
see if your lcd_cmd() function auto increments the position of character.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?