MSPLife 2 Posted May 10, 2016 Share Posted May 10, 2016 Hi everyone, I am facing with a problem about changing DB9 port to USB port to adapt to new computer generation. I download an application that has a Graphic user interface was written on Windows XP, use DB9 port connect to a board has a MAX232 IC to convert signal from RS232 to UART to communication with MCU with diagram: PC -- DB9 cable -- RS232 to UART -- MCU. My computer running windows 8, which does not have DB9 port, so I bought a board that convert USB to TTL (uart). So now my diagram is: PC --- USB cable -- USB to TTL board --- MCU. With my connection (using USB to TTL), I can not use the GUI to read or write signal because the GUI waiting for a "\r" ascii 13 or CR to parse data. I can confirm that because I can use a serial port software such as putty to type the command and communication with the board. So my question is when I change RS232 to USB, will my signal be changed? if yes, could you suggest for me a solution? Thank you so much! Quote Link to post Share on other sites
dubnet 238 Posted May 10, 2016 Share Posted May 10, 2016 For an inexpensive, less complex solution you may want to look at something like the Cypress Semiconductor CY8Ckit-049-42xx. While this is actually a inexpensive development board for their PSoC line of MCUs, it has a detachable USB to Serial(TTL level signals) section. They also offer software to configure the serial parameters and it even supports I2C and SPI. Board costs about $4.00. Here is some info on the board: http://www.cypress.com/documentation/development-kitsboards/psoc-4-cy8ckit-049-4xxx-prototyping-kits?source=search&keywords=CY8CKIT-049-42XX http://www.cypress.com/documentation/software-and-drivers/usb-serial-software-development-kit Quote Link to post Share on other sites
chicken 630 Posted May 10, 2016 Share Posted May 10, 2016 What is the WindowsXP program you refer to? Is it a special application or just a serial terminal? If the latter, get Putty. It will send a bytes over serial as soon as you press a key. I should more carefully read questions, you already mentioned Putty. Quote Link to post Share on other sites
chicken 630 Posted May 10, 2016 Share Posted May 10, 2016 I wonder if your GUI application relies on "flow control" signals, that the MAX232 adapter may have provided. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.