Serial Port with real GPS module
Quote from desmondchan71 on February 3, 2026, 3:43 pmI connect a real GPS module to a USB to Serial (CP2102) adaptor, which connect to SimulIDE. I use a PIC16F887 to try to decode the GPS signal received. SimulIDE can read the signal from the GPS module but then crash after reading for about 10 seconds. Not sure about the reason, but may be because of overflow?
Thank you.
I connect a real GPS module to a USB to Serial (CP2102) adaptor, which connect to SimulIDE. I use a PIC16F887 to try to decode the GPS signal received. SimulIDE can read the signal from the GPS module but then crash after reading for about 10 seconds. Not sure about the reason, but may be because of overflow?
Thank you.
Quote from nemka on February 4, 2026, 6:36 pmYou can use one or two serial terminals for monitoring the serial communication.
If the serial terminal shows the expected data, the problem will be inside the PIC.
Check the OERR flag in RCSTA register. If overrun occured, your code is too slow. Try faster system clock or use interrupt and a software buffer for serial data.
You can use one or two serial terminals for monitoring the serial communication.
If the serial terminal shows the expected data, the problem will be inside the PIC.
Check the OERR flag in RCSTA register. If overrun occured, your code is too slow. Try faster system clock or use interrupt and a software buffer for serial data.
Quote from desmondchan71 on February 5, 2026, 3:03 pmHello,
I tried only a serial port without other component and it still crashed after receiving some lines of signals from a true GPS module.
Hello,
I tried only a serial port without other component and it still crashed after receiving some lines of signals from a true GPS module.
