Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 21st October 2009, 04:04 AM   #1
Default USB communication with PIC

Hi guys.. I'm having trouble googling around about this stuff, so here goes.
What is the simplest way to transmit/receive data to a PIC18F4455 which can be directly USB connected to a PC/laptop? I have VB 2008, where some guys said that can be used for this purpose, but i'm getting nowhere...
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com
Vizier87 is offline  
Old 21st October 2009, 04:34 AM   #2
Default

The easiest way is to use MicroChip's USB framework which is available as a link from the 18F4455 page.
__________________
Inside every little problem, is a big problem trying to get out.
kchriste is offline  
Old 21st October 2009, 06:47 AM   #3
Default

Thanks a zillion man. I'm still downloading it with our crappy wireless signal... but I'm good.
So the link is Microchip Application Libraries v2009-08-31.zip right?
Is it a standalone software or is it to be incorporated into a compiler like MikroC?
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com
Vizier87 is offline  
Old 22nd October 2009, 02:31 AM   #4
Default

Yes. the zip file contains a bunch of code. The USB framework is part of that.
The code is in C which is compatible with MicroChip's C18 compiler which can also be downloaded for free. The free student edition will work fine and even when it "expires", it still compiles but just with some optimizations turned off. I think the code also supports HiTech C. It did when I was playing with it a year or so ago.
__________________
Inside every little problem, is a big problem trying to get out.
kchriste is offline  
Old 22nd October 2009, 04:42 PM   #5
Default

Also see the USB Bitwacker which implements usb and has a usb bootloader
Russ Hensel is offline  
Old 23rd October 2009, 02:51 PM   #6
Default

Follow the previous suggestion from Russ Hensel: UBW.

It's a complete USB PIC project with a "firmware" (Firmware ver 1.4.3) that implements simple text commands to drive PIC I/O pins. The commands are sent using a sort of "usb serial emulator" so a simple VB 2008 program can drive the PIC board.
Arkham00 is offline  
Old 24th October 2009, 04:18 PM   #7
Default

Yeah.. I got VB 2008, but how do I get to the part which configures the USB outputs of my laptop? The software is like... too general for me.
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com
Vizier87 is offline  
Old 24th October 2009, 05:05 PM   #8
Default

Quote:
Originally Posted by Arkham00 View Post
Follow the previous suggestion from Russ Hensel: UBW.

It's a complete USB PIC project with a "firmware" (Firmware ver 1.4.3) that implements simple text commands to drive PIC I/O pins. The commands are sent using a sort of "usb serial emulator" so a simple VB 2008 program can drive the PIC board.
The UBW can be recognized by the specific software provided, right? But how about PIC184455 which is wired directly so that the USB connection is configured? Can it detect that as well?

Kchriste: I've just completed downloading the software. I'll need to maneuver it before using it properly. Thanks.
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com

Last edited by Vizier87; 24th October 2009 at 05:10 PM.
Vizier87 is offline  
Old 24th October 2009, 08:04 PM   #9
Default

The UBW software connects to the PC as a virtual COM port. No specific software needed.

3v0
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)
3v0 is offline  
Old 25th October 2009, 04:26 PM   #10
Default

so that means the PIC18F4455 which is directly USB-connected is recognized after installing that software? I mean the MCHPFSUSB_Setup.
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com
Vizier87 is offline  
Old 25th October 2009, 04:43 PM   #11
Default

Quote:
Originally Posted by Vizier87 View Post
so that means the PIC18F4455 which is directly USB-connected is recognized after installing that software? I mean the MCHPFSUSB_Setup.
As long as the PIC is programmed accordingly - but I'm not sure what you mean by 'directly USB-connected'?
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 25th October 2009, 06:51 PM   #12
Default

Look at this tutorial:
UBW tutorial

UBW is just a generic PIC18F2550, 4550, 4455 board with a bootloader and an optional program (named "firmware" in the tutorial) that enables the UBW to be connected to a PC as a virtual COM. From a PC program that is able to connect to a serial port (from Hyperterminal to VB6 to Delphi to VB.NET to ...), you can control every PIC pin. The tutorial helps you in finding the correct driver in the microchip usb software.
Arkham00 is offline  
Old 25th October 2009, 06:52 PM   #13
Default

If you want to talk to the ubw from the pc ( not programming but afterword ) two easy ways are to use liberty basic ( examples from the ubw guy ) or processing which is often used with the arduino, lots of examples out there.
Russ Hensel is offline  
Old 26th October 2009, 07:31 AM   #14
Default

Quote:
Originally Posted by Nigel Goodwin View Post
As long as the PIC is programmed accordingly - but I'm not sure what you mean by 'directly USB-connected'?
What I meant is that the connections are made according to the schematic:
http://www.electro-tech-online.com/a...1&d=1256538457

.... and connected to the USB port of my netbook, only that I'm using 18F4455 rather than 18F2455. Thanks for the UBW link, I'm exploring them now.
Attached Thumbnails
USB communication with PIC-usb.jpg  
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com
Vizier87 is offline  
Old 26th October 2009, 08:43 AM   #15
Default

Quote:
Originally Posted by Vizier87 View Post
What I meant is that the connections are made according to the schematic:
You mean just like the UBW, or any oither 18F PIC cicruit.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Tags
communication, pic, usb

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Pic 2 Pic i2c communication HerbertMunch Micro Controllers 8 8th June 2008 01:44 PM
USB communication with pic Albert Smit Electronic Projects Design/Ideas/Reviews 5 3rd May 2008 04:23 PM
USB communication between microcontroller & PC HiteshDR Micro Controllers 15 19th December 2007 08:57 AM
USB Communication Software Algoritm iso9001 General Electronics Chat 5 14th January 2005 07:38 PM
usb device communication with my pc defcon31 Micro Controllers 4 8th January 2004 09:16 AM



All times are GMT. The time now is 06:25 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker