The blog of a dedicated radio amateur and electronics enthusiast

"Having fun on the air and in the workshop - communicating and creating"

31 July 2013

USB - TTL UART

FT232RL board, USB left, TTL right

My descriptor embedded in the FT232RL
Serial comms setup
I had been looking for a usb interface solution for a piece of home-made gear when an old friend, who is a professional electronics engineer, reminded me of FTDI's range of interface chips. He even gave me one to play with; the 28 pin FT232RL. It's a USB-TTL UART device. So I did some experiments to practise using it.
First I made a circuit to use it as a usb powered device. After installing the drivers on a pc, I could see another usb(com) port had been detected. Then with a few more components added to the circuit I used it in my intended application as a self-powered usb device.
I programmed the user area of the chip's eeprom with my application data and some configuration options, e.g., allocating a couple of pins as outputs for LEDs. I was pleased to see that the same data I had just programmed in now appeared in the usb connection properties window.
Confirmation that the circuit was functioning correctly came when the red and green LEDs flashed in response to sent and received data between the PIC EUSART on MYDEV2 development board and the host pc running serial communications software.

No comments: