PICcoder.co.uk Forum  


::post new topic::
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 09:05 By: Marco Status: Visitor  
 
Since this is my first post, congratulations for this very best USB article Mat. For me, that started USB, 2 days ago, with this article referenced in the microchip forum this is excellente.

My question:
I've done everything correctly in the firmware. Compiled and make it programm just fine. I just have a little question - when I got the pcb mounted i assumed that the pin 1 (Vdd) comming from the USB port is the Vdd of the project right?I don't need to supply with 5V correct? I plugged in and the PC never displays anything, like it never have been plugged in...lol I checked the Vdd voltage and there are 5V, so I think that the supply come from the USB port (since it can give 100mA max for low power circuit). Or the problem is that I should supply with 5V?
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 09:25 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Glad you like the article,

You dont need to supply the 5v, it will use the power from the USB. I would recommend checking the configuration settings, in particular the oscillator settings. Also check you have made the required alterations to the circuit, which are mentioned below the diagram.

Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 09:30 By: Marco Status: Visitor  
 
Seems more like configuration bits problem. I've tried some things. Now the oscillator is "XT:-USB-XT" since I'm using the 20MHz crystal like the post.
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 09:48 By: Marco Status: Visitor  
 
I had very carefully because I am using the PDIP of 40 pin, so I was awarness that all pins were in different positions, but everything was done like the 4k7 at the RA1 pin to Vdd.

In the configuration bits now I have the oscilator in XT: USB-XT and the FULL SPEED USB clock source selection with "clock src from OSC1/Osc2" since the other option also not works.
CPU System clock Prescaler "[OSC1/OSC2 Src: /1][96MHz PLL Src: /2"
and
96MHz PLL Prescaler "Divide by 5 (20MHz input)" also disable USB voltage regulator like our coleague that used a external clock in OSC1.
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 09:53 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
That looks like your problem, change the oscillator to HS: HS+PLL, USB-HS, and see how that goes.

Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 10:19 By: Marco Status: Visitor  
 
That's the only option where pin RD0/SPP0 and RD1/SPP1 are always high. And RD2/spp2 and RD3/SPP3 always low. What this means?

Thanks,
Marco
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 10:48 By: Marco Status: Visitor  
 
I've debbuged some code and notice that when te code is in InitializeSystem(void) in the main.c file, the command
mInitializeUSBDriver(); // See usbdrv.h
never get in. Notice also that the usbdrv.h isn't in the header files, but since I don't get any error while compiling, I don't believe that could be in code (and no one else had similar problem). The only warning I get is:
Clean Warning: File "C:picusbdemoMCHPUSB.lst" doesn't exist.
Is there any problem with this one?

Thanks,
Marco
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 10:50 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
I wouldn't worry about that, the fact that both LED's are lit means that the device is attached. Try using device manager to force the drivers to install.

Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 10:59 By: Marco Status: Visitor  
 
But the PC never detects the plugin...how can I force them?
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 11:17 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Does nothing appear in device manager? not even a faulty or unknown device?
Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/08/22 11:37 By: Marco Status: Visitor  
 
Absolutely nothing. I've been using the connector type B with 4 pin wich (as you mentioned) I connected pin 4 to GND. I'm now switching to match your case with a miniAB connector OTG(http://www.molex.com/pdm_docs/sd/565790519_sd.pdf)

I will give some news soon...

Best Regards
reply | quote

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
::post new topic::