Hi,
I have an embedded system with an AT89C51SNDC1 (which have only one UART) So actually I have only one external serial connection for debugging this UART by a DB9 connector.
for my new application I must implement the reading of data comming from a GPS oem (each second). Because of I have only one UART (on pins P3.0 and P3.1 are connected a debug cable) incoming data from GPS must be connected to the same pins of connector of UART than use for debugging (perhaps only on RX pin of the µc because of GPS incoming), so I think so but I don't know if it is correct?
for that I suppose to use every short time of each second reading of data coming from GPS in my infinite loop, but how exactly do that? Must I use software interrupts?
In my actual program there is no interrupts.
So how must I implement that, could you help me please?
PS: So I suppose that hardwarelly I will have an external connector with "Y" cable.
Thank you
Best Regards,
Sems
Anyway we are already realize and produce this PCB with an AT89C51SNDC1 with only one UART. But I think we can resolve this problem without realizing a new PCB. the usual problem: making the hardware before the thingy is thought out. Also, the cost of another proto spin spread over thousand of units is virtually nothing. Is the fear of making another proto a fear of losing face or what is it?
some suggestions: 1) the simples and best: buy am ICE 2) disconnect the GPS and make it possible to feed "simulated" GPS data fron the debugger
Erik
Or, make it possible for the debugger to somehow "pass-through" real GPS data:
+-------+ | | Debug + "encapsulated" GPS GPS --->+.......+-------------------------------> Your | | Device +-------+ Debugger
A simplistic approach would be to simply double the baud rate and send alternate characters from debugger & GPS...
Your DIP switch would select between "real" and "debug" mode...