CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB. Where to start?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mrpicing



Joined: 22 Oct 2005
Posts: 20

View user's profile Send private message

USB. Where to start?
PostPosted: Wed Sep 20, 2006 11:43 pm     Reply with quote

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








PostPosted: Thu Sep 21, 2006 4:49 am     Reply with quote

the following link: beyondlogic.org/usbnutshell/usb7.htm
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Thu Sep 21, 2006 7:23 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Sep 24, 2006 12:56 am     Reply with quote

I got pdf file from beyondlogic and reading it Confused .
Can any body write a code for me Rolling Eyes .
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

View user's profile Send private message

PostPosted: Mon Sep 25, 2006 5:56 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Sep 25, 2006 7:41 pm     Reply with quote

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








PostPosted: Sun Sep 16, 2007 1:30 pm     Reply with quote

asmallri,

what about data speed with FT245?
octal



Joined: 15 Jan 2007
Posts: 39

View user's profile Send private message Visit poster's website

Re: USB. Where to start?
PostPosted: Sun Sep 16, 2007 4:40 pm     Reply with quote

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 Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group