This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How using 1 UART for 2 externals applications

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

Parents
  • Using of an ICE ( I think to a JTAG system isn't it?) if yes how use it like simulation or debug?
    If you do not know, visit e.g. Ceibo.com or Nohau.com

    an ICE rarely is JTAG, if you have JTAG it usually is "ICE functionality built into the chip". For the typical chip the ICE has a 'pod' that you plug into your board instead of your processor, the pod runs your program on your actual board with the same inputs and outputs and at the same speed as your actual chip (your board will not know the difference)

    thus an ICE is neither "simulation or debug" it is In Circuit Emulation

    ICEs will cost you ~$500(e.g. Acqura) - ~$20000(e.g. Lauterbach) and they will pay for themselves in no time at all.

    Erik

Reply
  • Using of an ICE ( I think to a JTAG system isn't it?) if yes how use it like simulation or debug?
    If you do not know, visit e.g. Ceibo.com or Nohau.com

    an ICE rarely is JTAG, if you have JTAG it usually is "ICE functionality built into the chip". For the typical chip the ICE has a 'pod' that you plug into your board instead of your processor, the pod runs your program on your actual board with the same inputs and outputs and at the same speed as your actual chip (your board will not know the difference)

    thus an ICE is neither "simulation or debug" it is In Circuit Emulation

    ICEs will cost you ~$500(e.g. Acqura) - ~$20000(e.g. Lauterbach) and they will pay for themselves in no time at all.

    Erik

Children