PDA

View Full Version : CDC Assistance



ricgar
- 19th November 2008, 22:28
Hi I have followed the advice on the following thread for cdc for dummies...
http://www.picbasic.co.uk/forum/showthread.php?t=5806

I made sure it complied correcly for a PIC18F2450, and then loaded it onto the PIC

once plugging in the usb, it says that the device malfunctioned and that it could not recognise the device.

Attached is a schematic of the device, except that i am using a PIC18F2450 instead of the one on the schematics, but the pinning is exactly the same.
Also attached is the hex and codes used to load onto the PIC....

Any Help of where to find the issue would be of great help!

Thanks

mister_e
- 19th November 2008, 23:30
Working for me here with a 18F2455.

High likely an hardware problem, device programmer problem, or both.

Install USBDeview, with it, uninstall the generated PIC18 USB CDC device, then reinstall the "driver".

ricgar
- 20th November 2008, 09:48
Working for me here with a 18F2455.

High likely an hardware problem, device programmer problem, or both.

Install USBDeview, with it, uninstall the generated PIC18 USB CDC device, then reinstall the "driver".

How would i know if it is a device or programmer problem (I'm using a JDM programer) http://www.instructables.com/id/Business-Card-PIC-Programmer/
and using a winPIC programmer software.

And for the use of USBDeview, there is nothing there with regards to PIC18.....

Thanks

ricgar
- 20th November 2008, 10:14
Also just thinking would there be a possible issue with the cdc code if the chip has less memory? since the PIC18F2450, the one i am using, has like half the memory of the PIC18F2455, the one that is working on your side?

mackrackit
- 20th November 2008, 13:42
How would i know if it is a device or programmer problem (I'm using a JDM programer)

Can you make the chip do anything, blink an LED?
Some JDMs have trouble with 18Fs. JDM is not the recommended one here. To many troubles.

ricgar
- 20th November 2008, 16:49
Any other suggested DIY programmer?

mister_e
- 20th November 2008, 19:18
Not really, the only cheap one I would suggest is MicroChip PICKIT 2... but this is not a DIY.

Maybe your Device programmer Software have an option to program or not program the configuration fuses? The led blink is usually a good start.

mackrackit
- 20th November 2008, 20:50
Any other suggested DIY programmer?

Go with the PICKIT2. By the time you get the parts for a DIY kit, time spent trouble shooting why it does not work, visits to your therapist or local bartender. The $35 USD plus shipping is looking pretty good.

mister_e
- 20th November 2008, 23:31
I don't know if this could help in case it's a device programmer issue...
http://members.aon.at/electronics/pic/picpgm/