Problem displaying data from GPS module & using 16f877a
Hi, I am having problem showing data on hyperterminal using my GPS module and 16F877A
GPS module EM406A DEFAULT TO BAUD 4800
GPS is working as I connected it to PC without uC and I am getting the data. Problem is displaying it using PIC
Connections are as follow -:
PortC.4 ----Gps Tx (TTL 0-5V)
PortC.6 ----- MAx232 pin11
Max232 pin14 ----- Rs232 pin 2 (Pc Rx)
Gnd common
FOLLOWING IS THE CODE:
All pins digital, comparator off, analog channels off.
sms var byte[35]
Include "modedefs.bas"
DEFINE DEBUG_REG PORTC
DEFINE DEBUG_BIT 6
DEFINE DEBUG_BAUD 4800
DEFINE DEBUG_MODE 0
ab:
HIGH RED
serin2 portc.4,4800,[WAIT("$GPRMC"),STR sms\35]
DEBUG STR sms\17,13
pause 3000
LOW RED
goto ab
Is somthing wrong with the code or the hardware? Thanks