i updated my codes as shown below. lcd always displays "timed out!" even if i send data from terminal. i dont know the reason of this but device is deaf...
how can it be that the device (pic, i mean) can send data to pc through bluetooth but can not receive data from pc? is it possible? it pairs, sends but can not receive... it looks weird. what can be possible errors about this issue? here is my latest codes and drawings:
PS: i downloaded Bray's terminal.exe and im using it... as charlie said before, "bray's" is much more better than pussy, sorry putty
Code:DEFINE OSC 4 DEFINE LCD_DREG PORTB DEFINE LCD_DBIT 0 DEFINE LCD_EREG PORTD DEFINE LCD_EBIT 5 DEFINE LCD_RSREG PORTD DEFINE LCD_RSBIT 6 DEFINE LCD_RWREG PORTD DEFINE LCD_RWBIT 4 DEFINE LCD_BITS 4 DEFINE LCD_Lines 2 DEFINE HSER_RCSTA 90h'%10010000 DEFINE HSER_TXSTA 24h'%00100100 DEFINE HSER_CLROERR 1 DEFINE HSER_BAUD 9600 DEFINE HSER_SPBRG 25 A VAR byte symbol LED=PORTE.1 TRISA.0=1 TRISC.7=1 TRISC.6=0 TRISE.1=0 LCDOUT $FE,1 LED=1: PAUSE 2000: LED=0 PAUSE 1000 A=0 LCDOUT $FE,1,"HELLO" pause 2000 MAIN: LCDOUT $FE, 1 HSERIN 100, timesup, [A] LCDOUT $FE, 1 LCDOUT $80, "A: ", Dec A PAUSE 1000 GOTO MAIN timesup: LCDOUT $FE, 1 LCDOUT $FE, $80, "Timed Out!" PAUSE 2000 GOTO MAIN End![]()





Bookmarks