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

Programming UART0/1 on uPSD3354

I cannot seem to get anything out of UART0 or 1 using printf(). What is the correct way to program these UARTS?

Thank you,
Stephen Blair

Parents
  • Stephen;
    As Erik points out, you need to define your target board RS232 connections.
    I assume that you are building your target system and we are not talking of an eval board from some vendor.
    You need to decide if your system will be a DCE connection or a DTE connection.
    The PC is normally defined as a DCE and an eval board is defined as a DTE in which case the eval connections for Rx and Tx are reversed and you can use a straight through cable. If both ends are defined as DCE, then you will need a cable reversing pins Rx and TX called a 'Null Modem' connection.
    Google RS232 and you will get several hits on proper pin definitions.
    It sounds to me that you might want your target board defined as DCE so talking to a PC with something like Hyperterminal, you will need a Null Modem cable. Of course Hyperterminal doesn't care what connection you have. I was just using that as an example.
    But if you plan to connect to some accessory, it most likly will be a DTE and your target should be a DCE.
    Bradford

Reply
  • Stephen;
    As Erik points out, you need to define your target board RS232 connections.
    I assume that you are building your target system and we are not talking of an eval board from some vendor.
    You need to decide if your system will be a DCE connection or a DTE connection.
    The PC is normally defined as a DCE and an eval board is defined as a DTE in which case the eval connections for Rx and Tx are reversed and you can use a straight through cable. If both ends are defined as DCE, then you will need a cable reversing pins Rx and TX called a 'Null Modem' connection.
    Google RS232 and you will get several hits on proper pin definitions.
    It sounds to me that you might want your target board defined as DCE so talking to a PC with something like Hyperterminal, you will need a Null Modem cable. Of course Hyperterminal doesn't care what connection you have. I was just using that as an example.
    But if you plan to connect to some accessory, it most likly will be a DTE and your target should be a DCE.
    Bradford

Children