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

2 UARTs

Hi guys,
Here is the situation I've 89c51 microcontroller board which I want to connect with PC as well as GSM but as everybody knows it(8051) has only one UART so one solution is try using 87xx or 83xx series of controller but that means I'll have to change my programmer. So what I'm thinking is I'll use simple mux/demux for Tx/Rx of 8051. I want to know will it be o.k.? Can simple AND or OR gates can handle data rate of 9600bps?

Thank you very much in advance.

Parents
  • Is main in keil is reentrant
    This has nothing to do with Keil.
    main is 'reentrant' in the sense that it is entered after each reset, but in no other respect.

    if you do not have an unbreakable loop in in your program will just 'overflow' at the end of main().

    This is EMBEDDED and in EMBEDDED you do not exit from (the root) main(). ONLY if you have code with a main() that call code with a main() (a very construed construct) could you have a returning main().

    Erik

Reply
  • Is main in keil is reentrant
    This has nothing to do with Keil.
    main is 'reentrant' in the sense that it is entered after each reset, but in no other respect.

    if you do not have an unbreakable loop in in your program will just 'overflow' at the end of main().

    This is EMBEDDED and in EMBEDDED you do not exit from (the root) main(). ONLY if you have code with a main() that call code with a main() (a very construed construct) could you have a returning main().

    Erik

Children