Hello all,
I am currently working on a project where I need to take data from a GPS module, send a GPS time stamp along with an ADC sample to a computer terminal to log the data.
However both the GPS and computer communicate with the MCU via UART. Now I already have the UART set up to talk to the computer at 115k baud, but I still need to UART with the GPS. I know that it is possible to implement a software UART but the examples I've found say that you must use pins tied to a timer which end up being P1.1 and P1.2 the same pins as the hardware UART already being used to talk the computer.
So naturally I thought Time-division multiplexing would be the best way to communicate with both the GPS and the computer terminal on the same 2 pins.
This is where my knowledge begins to wain. After some basic researching I found plenty of theory on TDM but no actual way to implement it in either hardware or software.
So wonderful engineers on the E2E forum I was wondering is there a multiplexer IC somewhere out there that could do what I want?
Or do I need to program the GPS and computer to have a "device ID" so that they both read from the same line and just stop listening if I'm not talking to it? Is either of these methods even possible or am I just chasing my tail?