Ok this has been a voyage of discovery, DT has once again proved he knows what he's on about with these black squiggly caterpillar shaped things and is a patient man, although he could have been throwing things at the screen reading my meanderings i dont know..
Anyhow, I thank him, and respect his advice, and by following it, I have won the war.
So, I now pass on my words of wisdom learned form this, and i also offer my hex for others following the path.
1) if nothing seems to be making sense - reinstall PBP and MPASM and your text/source editor IE MCS
2) RT*F*M ! TWICE - I copied files into the wrong places and ruined it all, had to go back to step 1, you may too, we all do from time to time, no matter how much you tell yourself you dont need to, for the sake of 15mins, DO IT
3) Check your HW - the USB bus is a funny old thing, find one of the usual example diagrams, and wire it that way, dont add anything, dont be a genius and take something off, do it as it shows, exactly as it shows, the three important connections are D+,D- and the VUSB capacitor, do not be having bright ideas, just build as it is in all the diagrams, its the same in them all for a reason, that way works.
4) Use a standard crystal size like 4mhz or 20mhz if possible, reason being you may be lucky and find someone has posted some pre-compiled code for your chip, then you can just burn that to test your hardware, thats one part of the puzzle completed, if it does not work then, fix your hardware, if it works and your code does not, fix your code, you win half the battle if you can find some code to help you
5) Dont give up, dont expect immediate help, it can take a few days for someone to remember something that may help you, just wait patiently and do something else in the mean time
I hope my blundering efforts to get USB working give you hope, I managed it, I'm not the best at this by a long way, I got my help and I'm a happy bunny, now I'm going to try and help back, by posting some simple working hex so if you are having problems, you can test your hardware before blaming your software....
Heres another good place to start
http://www.picbasic.co.uk/forum/showthread.php?t=5806




Bookmarks