In your configuration bits, the USB voltage regulator needs to be enabled.
In your configuration bits, the USB voltage regulator needs to be enabled.
I tried how it worked with it on, however without success, that seems not change anything, so the fault is somewhere else...![]()
It seems that I had read the data sheet carelessly![]()
Back to the basic, first question:
Is easyHID generally considered as a 100% working "code generator" and should work straight away? A silly question perhaps when just looking at the picbasic code, but there are other files also that aren't "so clear"...![]()
As long as you've done everything exactly right, then yes, An EasyHID program will connect to the computer without any hassles.
When you have MORE THAN 1 problem at the same time. It's often hard to find them, because simple trial and error no longer works. No matter what you change, it still won't work.
In the case of the VREGEN. IT MUST BE ENABLED!!!
Please try the attached .HEX file. It's for an 18F4550 @12mhz.
I've set all the configs in the program, so allow meProg to use those settings.
Remove the .TXT extension.
All it does is connect the USB.
All other pins are set to input.
MCLR is disabled.
After programming, be sure to cycle the power ON/OFF once.
This should tell us if it's hardware, or software.
DT
Thank youit surely did tell us...
The behavior is exactly the same, no difference. The configuration as earlier, with the exception that the USB voltage regulator is enabled as it should be.
If your code was working (that is surely was, of course, no doubt) then the fault must be a hw matter. Please take a look at an excerpt from the schematic that is attached. That is the schematic from which the prototype pcb has been done. It is Eagle-cad, and it claims (and so it also is) that the board and schematic are consistent, so it is easier to look at it than on the pcb. I can not see an error there, but I'm often quit blind, too often...
![]()
Yes, that program definitely works.
Dumped in on an 18F4550 before I uploaded it here.
I don't see anything directly in the schematic.
But up in the top left corner, there's some connections labeled P$1. Where do they go? Nowhere I hope.
Which type USB connector are you using? A, B, mini?
DT
I'm really glad at this point that my PIC has a "working firmware" in it, very glad indeed. Thank you Darrel
With working I mean that this is a real milestone here and next I shall/must/will find an error on the pcb. If not ... that is not an option.
I will take a big magnifying glass and look throughly what could be wrong with the pcb. The error/fault/"something wrong" have to be there, so it needs a sharp and thorough inspection...![]()
It is a prototype at this stage. This means that there is an USB connector so you can easily use the USB on it, connect it to your PC etc.
The connectors in the left upper corner are there for the final situation, at that point the USB connector will disappear from the pcb and it is moved then behind those connectors.
The USB connector is B type, attached also an excerpt from the Eagle.pcb just to demonstrate the connector type
A USB mini connector wouldn't be good for testing purposes...
Still that is not an option. However can not find anything wrong, it seems to be electrically good when measuring all routes around USB, nothing seems to be wrong or even can not suspect any routes.... error on the pcb. If not ... that is not an option.
However, I have one question, what should one see on D+ and D-?
Now those seem to be steady, about 100mV.
Darrel: that software you kindly provided as a hex-file... When not knowing what is inside I'm not sure about what I should see on those two pins (23,24)?
.
Bookmarks