I am trying send serial data pic 12f675 to 16f8777 and show this value on the lcd panel but it doesn't work. here is the program code. any ideas pls.
12f675:
INCLUDE "MODEDEFS.BAS"
@ DEVICE INTRC_OSC, WDT_OFF, MCLR_OFF, PWRT_ON
define osc_4
DEG VAR BYTE
CMCON=7
ANSEL=0
TRISIO.0=0
DEG=1
BASLA:
PAUSE 3000
SEROUT2 GPIO.0,16780,["A",DEG]
PAUSE 200
END
16f877:
INCLUDE "MODEDEFS.BAS"
define osc_4
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 3
DEFINE LCD_RWREG PORTB
DEFINE LCD_RWBIT 2
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 1
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEG VAR BYTE
ADCON1=7
TRISB=0
TRISC=1
LOW PORTB.2
PAUSE 100
LCDOUT $FE,1
PAUSE 100
BASLA:
SERIN2 PORTC.0,16780,[WAIT("A"),DEG]
PAUSE 200
LCDOUT $FE,2,#DEG
end