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 27th April 2008, 12:40 PM   #1
Default USB - First try - PIC 18F4550

PIC 18F4550.

After downloading the Brad Minch's LAB1 software for USB, and having read a lot, I have some questions:
a) What is the software I should run in the PC (much like Hyperterminal when using old RS-232)? Is it anything like that included with Windows XP?

b) LEDs blinking on the PIC side, and on the PC's screen I should see what?

c) I managed to understand he uses PORTB to get additional info on the progress but I can not see how to make of good use of this software for a simple application sending just plain text to PC (debugging purposes and eventual final use with my board) and receiving from time to time simple ASCII codes from the PC.

d) It seems that even Jan Axelson have been using some basic software initially supplied by Microchip (is it USBCH9.ASM or something like that?) I couldn't find it after searching for long time.

Sorry, is my first time with USB and I work in Assembler. And yes, I have read USB rev 2.0.

Help appreciated.
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline  
Old 27th April 2008, 05:29 PM   #2
Default

Quote:
Originally Posted by atferrari
b) LEDs blinking on the PIC side, and on the PC's screen I should see what?
You need some sort of USB terminal that will connect to USB port and read/write. I personally use HIDTerminal.exe provided with MikroC compiler (it is available in demo version too) but i'm not too satisfied with it. an generale, you would have to create your own driver for win to communicate between your app and the usb device ... some prog packages (VB, VS etc) have functions that will allow you to "talk" with usb directly but I personally never tried. The other way is to "make your device present itself as recognisable device", for e.g. serial adapter, so then the win will autoinstall drivers as you connect your device and then you can use standard serial libraries on windoze (or hyper term) to talk to your pic. This is imho better then writing your own driver on the windoze side, but it requires more development on the pic side. I never tried that neither but I'm pretty sure you can find some examples on how to tell windoze your pic is usb2serial adapter. for e.g. here is the microchip example on how to do just that:
http://www.microchipc.com/sourcecode/#pic18f4550usb

your pic will tell windoze it is standard serial port, windoze will create new port and you can connect to it using hyper terminal
arhi is offline  
Old 27th April 2008, 06:29 PM   #3
Default Plain USB wanted

Quote:
Originally Posted by arhi
You need some sort of USB terminal that will connect to USB port and read/write. I personally use HIDTerminal.exe provided with MikroC compiler (it is available in demo version too) but i'm not too satisfied with it. an generale, you would have to create your own driver for win to communicate between your app and the usb device ... some prog packages (VB, VS etc) have functions that will allow you to "talk" with usb directly but I personally never tried.
Yes, that is what I am looking for.

Is it possible to obtain HIDTerminal.exe for free?
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline  
Old 27th April 2008, 06:31 PM   #4
Default

you just need to download MikroC demo software. HID terminal is part of their IDE.

http://www.mikroe.com/en/compilers/m...c/download.htm
__________________
Steve
mister_e is offline  
Old 28th April 2008, 01:19 AM   #5
Default

Microchip had a HID control for VB that was downloadable from their site. It doesn't seem to be available anymore. I still have the install file if it is of any interest. I think it was withdrawn due to problems with .net.

Mike.
Pommie is offline  
Old 28th April 2008, 02:29 AM   #6
Default

Good, Mike. Sure I am interested.

What were the problems? Anything that could means problems to me? Win XP & SP2, MPLAB working in assembler.

Pleased to hear of alternatives...!
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline  
Old 28th April 2008, 03:28 AM   #7
Default

I was using the 16c745 in asm. The HID control worked fine for me but I think that was before SP2. I just tried installing the control (XP Pro SP2) and it won't install.

I'm having problems attaching it but the same file is available from this page. (HIDCOMM_b.exe)

Mike.
Pommie is offline  
Old 28th April 2008, 11:39 AM   #8
Default And now what, Pommie?

Downloaded & installed, but I can not find an EXE (other than that of setup).

Should be one after installing? How to launch it?

At lost. Yes I ignore almost everything about PCs, more and more as time passes by.

Thanks for being so helpful as usual.
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.

Last edited by atferrari; 28th April 2008 at 11:42 AM.
atferrari is offline  
Old 28th April 2008, 11:48 AM   #9
Default

After it is installed it should appear as a component in VB. Try adding a component and see if it is in the list. It is exactly the same as using the MSCOMM control.

Mike.
Pommie is offline  
Reply

Tags
pic, usb

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
usb flash memory and pic x_sa07 Micro Controllers 28 23rd April 2008 03:22 PM
serial communication with pic 18f4550 neelam29 Micro Controllers 4 2nd March 2008 06:54 PM
Pic 18f4550 watzmann Micro Controllers 3 29th February 2008 06:19 PM
PIC 18F4550 interacing with USB amax Micro Controllers 7 21st December 2007 03:13 PM
Reliable USB PIC Programmer UTMonkey General Electronics Chat 11 25th November 2007 09:42 PM



All times are GMT. The time now is 10:14 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker