USB Devices Fuse configuration

General discussion on mikroC.
Post Reply
Author
Message
Dxmaxim
Posts: 80
Joined: 30 Sep 2008 08:10
Location: South Africa
Contact:

USB Devices Fuse configuration

#1 Post by Dxmaxim » 05 Aug 2011 07:54

Hi All,

I am currently battling with the PIC18F2550, PIC18F4550, PIC18F2553, PIC18F4553

I have used the HID project in the examples section and all I have added is a traditional led flashing routine. But would you believe it the PIC will not start up and the LED will not flash.

I have disabled the comparators, ADC, etc as with the code sample but no luck. The LED is flashingh on port B.0.

I don't suppose anyone has susch a simple working rountine that they can share to help me trouble shoot ie it must work on your dev board. I have tried the exaxt same code with all four devices above with the same result, the led just will not flash. I have tried the same code on a PIC16F887, and it works so it's not the programmer or the PCB

Programmer :PICKIT 2
MkroC version: MikroC Pro for PIC 5.01

Thanks in advance

Michael Havenga
ZarDynamix | Fidelis et fortis semper
An embedded solutions company
Site | http://www.zardynamix.com

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: USB Devices Fuse configuration

#2 Post by filip » 08 Aug 2011 09:55

Hi,

Here is a simple project that will toggle the PORTA LEDs whenever you send a string from the HID Terminal

Regards,
Filip.
Attachments
proj.rar
(9.74 KiB) Downloaded 165 times

Dxmaxim
Posts: 80
Joined: 30 Sep 2008 08:10
Location: South Africa
Contact:

Re: USB Devices Fuse configuration

#3 Post by Dxmaxim » 08 Aug 2011 18:37

Thankyou very much, appreciate it.

Regards

Michael
ZarDynamix | Fidelis et fortis semper
An embedded solutions company
Site | http://www.zardynamix.com

Dxmaxim
Posts: 80
Joined: 30 Sep 2008 08:10
Location: South Africa
Contact:

Re: USB Devices Fuse configuration

#4 Post by Dxmaxim » 10 Aug 2011 08:23

Hi Marko,

I am using windows 7 and for some reason the PC is not picking up the USB device. I know the following:

1) The pic is starting up and working as an LED toggle at the begining of the code works
2) The USB PORT on my PC is working as the MCP2200 device on my PCB enurmerates and runs correctly.

Q1: Is there a possibility that the include file is missing or is that part of the library now ?
Q2: Is there a possibility that I can verify if the USB UART Is not starting up - how ?
Q3: Does the capacitor i use matter ? I see You guys use 2 x 100 Nf in parrallerl and others use a 470nf Capacitor. The closest I had was a 47uF - is that perhaps the problem ?
Q4: Do I need some sort of HID driver for the PIC18F2550 ?

Regards

Michael
ZarDynamix | Fidelis et fortis semper
An embedded solutions company
Site | http://www.zardynamix.com

Dxmaxim
Posts: 80
Joined: 30 Sep 2008 08:10
Location: South Africa
Contact:

Re: USB Devices Fuse configuration

#5 Post by Dxmaxim » 11 Aug 2011 14:10

Hi Marko,

With regards to this post and this one PIC18F27J53 USB Problemhttp://www.mikroe.com/forum/viewtopic.p ... 9&e=164039, i was able to get the PIC working. I did not realise that when you switch processors the FUSE settings change; even if from the same family, which was the reason why it was not working on the PIC18F2550. When I tried the code on a PIC18F4550, works as expected.

Regards

Michael
ZarDynamix | Fidelis et fortis semper
An embedded solutions company
Site | http://www.zardynamix.com

Post Reply

Return to “mikroC General”