View previous topic :: View next topic |
Author |
Message |
mrpicing
Joined: 22 Oct 2005 Posts: 20
|
USB. Where to start? |
Posted: Wed Sep 20, 2006 11:43 pm |
|
|
Greetings!
I want to learn USB interfacing between PIC & PC.
I want to build a data logger as a trial project. It will read some analog signals through ADC.I dont know wher to start.
What should i try USB1.0 or USB2.0?
Can any body help me?
Thanks. |
|
|
Guest
|
|
Posted: Thu Sep 21, 2006 4:49 am |
|
|
the following link: beyondlogic.org/usbnutshell/usb7.htm |
|
|
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
|
|
Posted: Thu Sep 21, 2006 7:23 am |
|
|
Look in this boards code library. The CCS USB2.0 driver code does the heavy lift reducing USB to the put and get forms albeit with a few modifications.
On the PC Microchip has drivers or you can use the generic HID Mass Storage type drivers the Softees have. I prefer the Microchip drivers. They are easy to call from within a PC delphi or C or Basic program with equivalents of Open get and put on the PC side. You PC and PIC code then moves quickly as all the prickly stuff is embedded in the familiar open close get and put operations. |
|
|
mrpicing
Joined: 22 Oct 2005 Posts: 20
|
|
Posted: Sun Sep 24, 2006 12:56 am |
|
|
I got pdf file from beyondlogic and reading it .
Can any body write a code for me .
It should be written in CCS for PIC16C765 or PIC16C745.
Programm should get a command from computer to control LED(On_Off).
and programm should report a button state connected on interrupt pin.
Thanks. |
|
|
John P
Joined: 17 Sep 2003 Posts: 331
|
|
Posted: Mon Sep 25, 2006 5:56 pm |
|
|
I'm working on a product using the FT232R interface chip from FTDI. It's been really easy to work with from both the PC side and the PIC side--as far as the PIC is concerned it's a serial port, and as far as the PC software is concerned, it's also a serial port even though it's actually USB. I don't know how they do this and I don't care!
No connection with FTDI except as a customer.
Can any body write a code for me?
Uh, no. Not unless you pay me. But if you can get a serial port working, you can do this. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Mon Sep 25, 2006 7:41 pm |
|
|
John P wrote: | I'm working on a product using the FT232R interface chip from FTDI. It's been really easy to work with from both the PC side and the PIC side--as far as the PIC is concerned it's a serial port, and as far as the PC software is concerned, it's also a serial port even though it's actually USB. I don't know how they do this and I don't care! |
You might also want to look at the FT245 chip. It presents a parallel interface to the PIC but appears as a serial port to the PC. This allows you to achieve a higher throughput to the PIC and leaves the serial port free for other things.
I have used both the PICs with USB embedded and PICs with external (FTDI) USB controllers for data logger applications. The FTDI makes software development and integration so much easier than the embedded peripherals plus takes away the whole PC/OS/Driver update problem. I no longer even consider PICs with embedded USB for this class of application. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
Guest
|
|
Posted: Sun Sep 16, 2007 1:30 pm |
|
|
asmallri,
what about data speed with FT245? |
|
|
octal
Joined: 15 Jan 2007 Posts: 39
|
Re: USB. Where to start? |
Posted: Sun Sep 16, 2007 4:40 pm |
|
|
mrpicing wrote: | Greetings!
I want to learn USB interfacing between PIC & PC.
I want to build a data logger as a trial project. It will read some analog signals through ADC.I dont know wher to start.
What should i try USB1.0 or USB2.0?
Can any body help me?
Thanks. |
You should look at http://www.semifluid.com/?cat=12 there are various projects with CCS and PIC 18F2550 with source codes.
Regards
Octal _________________ http://www.pocketmt.com the GLCD Font Creator home |
|
|
|