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 support@ccsinfo.com

USB and Host computer communication

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



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

USB and Host computer communication
PostPosted: Tue Jul 06, 2004 10:06 am     Reply with quote

I am develeoping a protype device that could maesure color signal using PIC chips, I already developed measuring part on microchip. what I want to do next to to send the data to my host computer and monitor as well as save the data into an excel data base using visual studio, I have experience developing system visual studio to deveoped other real time system, but I know nothing about communication and saving to the data base, any suggestion, and directions, samples?

Any idea will be much appreciated!
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Jul 06, 2004 12:31 pm     Reply with quote

Easiest way I have found for adding a USB interface to a PIC is to use the FTDI chips (FT232BM for example). On the PC side you have the choice of either treating the USB stream as a serial port (Virtual Communications Port or VCP drivers) or using FTDI's "native mode" DLL. Both are well supported in the Visual Studio environment. I have converted several older projects from RS232 to USB this way.

I am still using Visual Studio 6 so I can't speak to how the .NET environment gets along with the VCP or DLL drivers. But Visual Basic 6 and Visual C++ 6 work like a charm. Both support serial communications and the use of external DLLs. Both have good support for database operations. I suggest you visit a good bookstore and do a some reading up on database accessing via Visual Studio. It is pretty easy if you use their pre-built OCX, VBX or DLL libraries.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Tue Jul 06, 2004 12:49 pm     Reply with quote

Thank you:
I am currently using a 16f877a with usb built in the system (easyPic2 borad).and I am using it to power up my whole system.
I heard it that I need to download some microsoft comminuication control drivers. could you suggest me where and which one should I use and download?
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Jul 06, 2004 6:09 pm     Reply with quote

I suggest you contact Mikroelektronica for assistance. The pictures on their web site are not clear enough for me to tell what is running the USB port.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Sat Jul 10, 2004 2:26 pm     Reply with quote

I did a little checking and it looks like the chip they are using for USB communications is the USBN9603 (or a derivative) from National Semiconductor.

You should be able to go to the National Semiconductor web pages and get the data sheets and application notes for that chip to develop your own hardware and software.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Guest








PostPosted: Tue Jul 13, 2004 6:58 am     Reply with quote

Thank you:

COuld you tell me how the USBN9603 is connected to the microcintroller. from the reading I know that there is SPI, FTDI method etc. ( I have blank knolwledge about these), maybe from here (since the hardwire is already built in the system) what I need is to deal with programming if you can give a hint about the connection on this special board.
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Jul 13, 2004 7:59 am     Reply with quote

Goggle sez to look here...

http://www.national.com/appinfo/usb/0,1808,126,00.html

Also, with many development kits, they provide you with a full schematic. Did Mikroelektronica provide a schematic?
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
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