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

RTS or DTR on UART1

Dear All,

How do I use RST and DTR signal with UART1?

Thanks a lot

Michele

  • Sorry... my board is mcb2300 with LPC2378

    Thanks a lot

  • See the description of the U1MCR (Modem Control Register) for controlling the DTR signal.

    But are you sure that you didn't mean RTS and CTS which is a common handshake pair?

    They can be used for auto-rts and auto-cts by configuring the U1MCR register. The erquired information is in chapter 15 of the user manual.

  • Sorry... which manual? LPC or MCB?

    Thanks a lot

    Mic

  • Now you are making me a bit confused.

    You wrote "How do I use RST and DTR signal with UART1".

    UART0 is available on the COM0 RS232 connector on the MCB2300. The connector has a signal to generate a reset and another signal to enter the ISP boot monitor.

    UART1 is available on the COM1 connector but there are no handshake signals available on the connector - at least not on hw revision 3.0.

    If you want to use modem control signals, you must yourself access the physical signals on the board and convert from logic levels to RS232 levels. See the schematics that is available on this site.

    Then you have to read the processor user manual for the information about how to initialize the modem control settings or to read the modem status settings.

  • Thanks.....

    This my problem.... I have a device that uses the RTS o DTR for 12V power and TX, RX e GRN for data communication. I think that I can have two solution

    1) I can use the RTS or DTR to pass the 12v to the device
    2) I can build a circuit with MAXIM so I can transform the 3.3V of the MCB2300 to 12V

    But I will want not used the second solution.... However if I must use the second solution... Which GPIO can I use?

    Sorry for my english

    Michele

  • 1) There are no RTS or DTR on the MCB2300 board. The connectors only have RX and TX. The two extra signals on COM0 have the wrong direction - they are there to allow a PC so reset the LPC23xx and to have it enter ISP mode.

    2) Does your solution requires power from two signals to operate? If not, and if you don't need both serial ports on the board, then you could take the TX signal from the other serial port (on the outside of the MAX5763) to drive one of these "power" lines. You can switch the signal on or off by configuring the TX signal on the processor as a GPIO output pin.

    However, you may need need more power than a single signal can supply to feed your external equipment, in which case you either need to add another MAX232 or similar or build your own charge pump.

    Is this a school assignment, or are you using the MCB2300 for prototyping of a real product?

  • I use MCB2300 for study but I hope in future for the job :-)
    I have bought this board for understand the world of the microcontroller and
    I will want to build an easy application for prototipe device of my friend

    I study Compuert Science

    Thanks a lot