ericmar
Full Member level 5
pic bitbang
Hi guys,
I'hv a serious problem which I hv to solve it within 1 week so can everyone help me? I'm writing program for my PIC using Hitech PIC C and I cant get it work with the sample bit-bang coding provided. I'hv already used my USART interface for some operation and thus, need to emulate another USART interface for accepting GPS data from my GPS receiver. However, I keep getting junk messages even though I'hv set the baud rate correctly. I couldnt figure out wats the problem since I dont really understand the coding! My PIC is 16F877 and my GPS receiver is Garmin GPS 18LVC. I noticed that the junk messages that I got is somehow repeating with slightly defferent which should be the time and checksum that keep changing every second in the GPS message. The pattern seems right but then I just couldnt get the correct data. I wonder which part in the coding has gone wrong! I did try to receive the GPS data directly though serial COM port and it works correctly though. So I think it should be my GPS receiver problem but the PIC program.
I appreciate for any help provided! Thanks a lot!
Regards,
Eric
Hi guys,
I'hv a serious problem which I hv to solve it within 1 week so can everyone help me? I'm writing program for my PIC using Hitech PIC C and I cant get it work with the sample bit-bang coding provided. I'hv already used my USART interface for some operation and thus, need to emulate another USART interface for accepting GPS data from my GPS receiver. However, I keep getting junk messages even though I'hv set the baud rate correctly. I couldnt figure out wats the problem since I dont really understand the coding! My PIC is 16F877 and my GPS receiver is Garmin GPS 18LVC. I noticed that the junk messages that I got is somehow repeating with slightly defferent which should be the time and checksum that keep changing every second in the GPS message. The pattern seems right but then I just couldnt get the correct data. I wonder which part in the coding has gone wrong! I did try to receive the GPS data directly though serial COM port and it works correctly though. So I think it should be my GPS receiver problem but the PIC program.
I appreciate for any help provided! Thanks a lot!
Regards,
Eric