http://www.picbasic.co.uk/forum/show...light=softwire
Seems to have change now.. maybe there's still some free version for VB6 somewhere
Ask them
http://www.picbasic.co.uk/forum/show...light=softwire
Seems to have change now.. maybe there's still some free version for VB6 somewhere
Ask them
Last edited by mister_e; - 16th March 2006 at 03:40.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi.
Im using EasyHID and a 18f4550 to communicate with VB6.
I use MicroCode Studio Plus and PicBasic 2.46. I download my programs using Microchip USB bootloader. And this works just fine.
Now I want to write a program that counts how long time an input pin is activated. Typical time will be in range form about 1ms - 120ms.
Normaly I would use "Pulsin" but what I understand the USB commands must be polled every 1ms or so. Is there another way to solve it in Basic?
Maybe to use the timers in 4550? If so, how shall that basic code be written?
Im not skilled enough to write the code in asm so it would be great if it is possible to do it in PicBasic.
Thanks in advance.
/Stefan.
Just revisiting this topic again....
It seems that HID is good enough to program and set up the PIC for USB use, but one really needs to generate a VB program to interface the PC to the USB device (aka PIC device)
I don't have VB, and was considering downloading the 60MB VB express from Microsoft.
Does anybody have experience with VB Express?
Does it have COMM components included? Or can you get them from a 3rd party? Prefer if they were free.... hahaha
I'm really interested in doing a bit of serial communications between the PIC(4550) and PC over the USB link, as most PC nowdays don't even come with Serial Com ports, USB interfacing is gonning to be the way of the future.
I don't want to go down the path of using a pre built usb 2 serial converter when a USB pic should be good enough, right?
interfacing a PIC to a pc is still easy.. the main problem is still that you have to keep the connection by send data to PC every 10mSec or so. Not so much problem but in some case, it's a pain. some conventionnal PIC and a RS232 to USB ic is still cheap and save the day when timing is critical.
But i'm still new in USB, there's so much things to learn before be comfortable with everything. Yeah it's more complicated than just USBIN, USBOUT, USBINIT, and USBSERVICE.. Jan Axelson's book is more than enough.
I use Visual C++, Visual Basic 6 and , beurk Delphi, so i'd never use the VB Express as now, it should have what you need. Case not, i guess you can use the API or DLL (i don't remind) of HID maker and play 'round it.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I had tried with VB Express but had quickly ditched it for VB6 from EBay. There were several things about VB Express; it lacks several features like Package Deployment which I require. I don't remember all the other reasons why I dropped it, but I "REALLY" didn't like it.
Check out EBay for VB6, there were several cheap auctions for the academic versions of VB6. I ended up getting the full corporate version for just a bit more, with all the manuals and tutorials.
Here's a NEW package for $125USD:
http://cgi.ebay.ca/ws/eBayISAPI.dll?...m=160004563299
This kit includes:
*Microsoft Visual Basic 6.0 Learning Edition
*Learn Microsoft Visual Basic 6.0 Now
*Microsoft Visual Basic 6.0 step by step
*Microsoft Visual Basic 6.0 Programmer's Guide
*The MSDN Library on two CD-ROMs
Some more learning editions:
http://cgi.ebay.ca/ws/eBayISAPI.dll?...m=250004751173
http://cgi.ebay.ca/ws/eBayISAPI.dll?...m=160005627793
Here's a professional edition:
http://cgi.ebay.ca/ws/eBayISAPI.dll?...m=300005730012
The action includes:
Microsoft Visual Basic 6.0 Professional Edition. One CD in Original Case.
Microsoft Visual Studio 6.0 Service Pack 5.0 One CD in a jewled case.
MS MSDN Libray-Visual Studio 6.0. 2 CDs in the original case.
MS Visual Studio 6.0 PLUS PACK. 4 CDs in the original case.
These are the full functional sets, not educational settings or demos.
Good luck!
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Hi,
I suspect a lot of you that have posted on this thread are subscribed to it. I'm having problems with Easy HID and have posted a new subject. Obviously a lot of you guys have used it and I'm wondering what I'm doing wrong. Please chack my post out - it's driving me mad:
http://www.picbasic.co.uk/forum/showthread.php?t=4304
I am ONLY having problems with the PIC program on compile
Thanks a lot
Rob
I just got an started using VB Express. Yes, it's a bit different, but it works great. You do have to learn a new way of writing things, but it's "the new way of doing things" according to Micro$oft.
If you use the "Upgrade Wizard", you can take your older VB6 type programs and import them into VB Express without much problem at all. VB Express uses a bunch of compatibility files to make it work with the old code just fine. Took me about 2 minutes to get an old serial port program with with VB Express...and the price was right too...
JDG
Like a lot of you I’m just starting to migrate some of my applications to USB. I’ve tried to us EasyHID to help me get started. I’ve read threw this post and it makes sense what I’m reading. My problem is that when I try to compile the PBP file it creates I get the compilation error
ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBIN?CBBL not found in macro file.
ERROR: Macro USBOUT?CBBL not found in macro file.
I’ve seen several posts’ that ask this question and I haven’t seen a good answer to what is causing it and how to fix it. I suspect it has to do with directory structure.
I’m using MCSP 3.0.0.5 and PBP 2.47.
PIC18F4550
Please help,
Hi mjwaldner,
Using Microcode Studio, make sure you have the correct chip selected, 18F4550. The editor sometimes defaults to a different IC when you open it - this has caught me out a couple of times!
Make sure that all the files that were generated by EasyHID are in the same folder as the file you are trying to compile - see attached image
Let us know how you get on
Cheers
Rob
Thanks Rob,
I started over form scratch and it worked this time. I must have moved something to the wrong directory.
My next question is. Should the computer recognize the USB device and try to install it automatically? I understand that I will need to work on the PC software to make it work but when I plug the USB cable into the PC nothing happens. It doesn’t try to install. I haven’t modified the software the Easy HID created. I just programmed it to the PIC 18F4550. Is there more code needed to initialize it.
I’m just taking baby steps threw this. Any information is helpful.
Thanks
Matt
Bookmarks