Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to PIC with USB memory device

Status
Not open for further replies.

kumeemb

Junior Member level 3
Joined
Nov 12, 2006
Messages
27
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,502
pic usb memory

Hi all,
i am into a project, where i need to connect a PIC18f452 microcontroller with a USB memory device (PEN DRIVE).
I have got a F232R IC which is a RS232 to USB convertor.
I am not sure whether it will work.
Any suggestions please.
This is my primary idea
PIC18452--serial communication --->F2323 IC -- USB protocol---> USB memory device.
i tend to write a some data in the pendrive using PIC and put the pendrive in the PC to view the data in the pendrive.

I do not whether i am designin a USB host or i am just converting the USB to RS232.
PLEASE NOTE: I AM NOT CONNECTING PIC WITH PC using USB.
some suggestion please.

regards,
Kume
 

vandelay

Advanced Member level 4
Joined
Aug 16, 2007
Messages
119
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,298
Location
Norway
Activity points
2,351

kumeemb

Junior Member level 3
Joined
Nov 12, 2006
Messages
27
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,502
vnc1l-pic16f688 spi example

Hi,
Thanks for your suggestion. i went through the document. it seems it will satisfy my requirement.
But unfortunately , i have bought ft232rl IC . so i have to use it (or else my boss will kick me out). So can you tell me whether i can use the IC for connecting my PC.

That is, i have changed my idea to the following

PIC micro controller --- RS232---> FT232----USB protocol----> PC

I understand, it will create a virtual comport in the PC. But i don't know how the virtual comport will be created. will the chip (FT232) take of creating the comport or do we need to write a program in the memory of chip. or do we need to have some software running in PC.

And how am i going to get the data from PIC and display it on PC.

can any help me with suitable documents.

regards,
Kume
 

vandelay

Advanced Member level 4
Joined
Aug 16, 2007
Messages
119
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,298
Location
Norway
Activity points
2,351
pic18f452 usb memory

Install the drivers provided by FTDI, and your system will automatically recognize the FT232 as a COM port. I can draw the following example for you;

Program your microcontroller to output "Hello World" to UART repeatedly, hook up the FT232 chip with it's TX to microcontrollers RX and vice versa FT232 RX to microcontroller TX. Install the drivers from FTDI and plug the USB connection of the FT232 to your computer. You will then see a "USB to serial" device in your device manager. Inspect what COM number your system assigned for the device, then use a terminal software like Realterm, and connect to the port. Make sure you configure the baudrate in the terminal software accordingly to the baudrate programmed on your microcontroller, or the data will show up as junk. If you have everything setup correctly, you should now see the string "Hello World" repeat in your terminal window.

EDIT: image attachment
 

kumeemb

Junior Member level 3
Joined
Nov 12, 2006
Messages
27
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,502
ft232 8051

Hi,
Thanks a lot. That worked. I never expected it to be so easy.

But i wonder what would be the Difference between a FT232RL and FT245BM.

regards,
Kume
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top