Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I want to interface a PIC microcontroller (18f452) to a PC via the USB port. I learned that there is a USB class for serial communication so I will not have to write device drivers for it.

I want to know a simple way to connect my PIC to a USB port. I prefer a one IC circuit. Is there an IC that will do my job?

share|improve this question

3 Answers

up vote 7 down vote accepted

The FT232R mentioned by Toby is the standard solution. FTDI has become the main supplier of USB connection solutions for microcontrollers and other logic devices. You install a Vitual COM Driver on your PC (downloadable from the FTDI website) and then you use the USB as a transparent communication channel for your UART. Means that the PIC will only see UART in and out, and the PC software will think the PIC is connected to a serial COM port.

enter image description here

This is the minimum configuration. As you can see that it's hardly more than the IC and the USB connector.

enter image description here

A breakout board like this one only needs ground Tx and Rx connections with the microcontroller. If necessary it can also provide the power supply for it.

edit
m.Alin mentions the Microchip MCP2200 as an alternative to the FT232R. I didn't know the device, and only had a quick look at the datasheet, but it looks promising: only half the price of the FT232R, and has both UART and GPIO. Breakout boards available:

enter image description here

(I'll study the datasheet a bit more tomorrow and report back.)

share|improve this answer
Well, actually it is claimed that MCP2200 is recognized as PIC18F14K50, and cheaper than a blank PIC. source – abdullah kahraman Sep 1 '12 at 8:48

The FT232L is a popular choice. It has drivers for all the main operating systems. There are breakout boards available.

share|improve this answer
For a cheaper alternative, see MCP2200 – m.Alin Aug 23 '12 at 18:30
1  
@m.Alin - Thanks for the tip. Checked the datasheet only briefly, but looks good. Only half the price of the FT232R, and has both UART and GPIO. – stevenvh Aug 23 '12 at 19:22
@stevenvh Interesting fact about the MCP2200 is that it's actually a pre-programmed PIC18F14K50 – m.Alin Aug 23 '12 at 19:29
The MCP2200 is half the price of a FT232R, but needs an external crystal. The FT230X is about the same price as the MCP2200 and includes internal clock generation like the other FTDI chips. – Jim Paris Aug 23 '12 at 19:48

The MicroFTX would do what you want. It's an extremely tiny breakout board for FTDI's new lower-cost FT230X USB to serial chip. There are solder jumpers on the bottom that let you configure things like I/O voltage and power options.

MicroFTX top

MicroFTX bottom

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.