Search found 28 matches

by gcp6ca
25 Mar 2012 21:02
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

tarakan wrote:I am planning to post this project somewhere as "open source", with a full description, for other elbow-biters like myself to learn from.
That is why mikroElektronika created:

Code: Select all

http://www.libstock.com/
by gcp6ca
19 Feb 2012 14:53
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

The "Oscillator Selection" should be HSPLL, the "USB Voltage Regulator" should be enabled and the frequency would be 48MHz instead of 8MHz.
by gcp6ca
12 Feb 2012 14:16
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

If you have are using the 8MHz crystal then the frequency for mikroC would be 48MHz. If you use a 48MHz crystal then the settings will not work. Since touching the crystal is messing up it means that the crystal is not working, the connection is bad (even it looks okay) or the 22pF capacitors are in...
by gcp6ca
12 Feb 2012 00:40
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

USB runs on its own clock or on the same clock that the processor runs on? The main clock is copied and then routed (depending on you settings) to both. What are the reasons to separate them or to run them off the same clock? The USB can only run from 48MHz but some people might want to run the CPU...
by gcp6ca
10 Feb 2012 14:54
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

mikroE already has a topic explaining the oscillator here (great topic): http://www.mikroe.com/forum/viewtopic.php?t=10646 You can use the 48MHz and in that case you need to follow the top route of the oscillator block to get USB to use 48MHz directly. The MUX lets you select which of the inputs to ...
by gcp6ca
10 Feb 2012 05:06
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

Look at Figure 2-1 in the datasheet for PIC18F2455, it maybe a bit confusing but it explains the clock options in one diagram. Your objective is to bring 48MHz to USB Peripheral and any speed you want to the output of the MUX that goes to the rest of the Peripherals and the CPU. Table 2-3 in the dat...
by gcp6ca
06 Feb 2012 05:34
Forum: mikroC PRO for PIC General
Topic: Configuring user application for non mikroE bootloader.
Replies: 3
Views: 1774

Re: Configuring user application for non mikroE bootloader.

Try this project, it is meant to help people get started using USB and Microchips HID Bootloader: http://www.libstock.com/projects/view/55/microchip-hid-bootloader-template-and-adc-over-usb-for-pic18f-and-pic24f-pic18f14k50-pic18f27j53-pic18f2553-pic18f4553-pic24fj64gb002-tested If should be very he...
by gcp6ca
06 Feb 2012 05:00
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

I don't see a 0.47 uF capacitor to ground on pin 18, VUSB. There are two flesh-colored sausages. They are labeled 104. PIC18F2455 only needs 220nF (he has 2x100nF), but a higher capacitance is not a problem. I would suggest adding one more 100nF capacitor since the nominal value right now is a litt...
by gcp6ca
05 Feb 2012 05:14
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

I haven't tried all the fuse setting combinations on the new board yet. I am not sure that it is going to work,ever. Are you still using the same PIC18F2455 because it is possible that it may have been damaged before (not all functionality has to be dead)? Also there is really only one configuratio...
by gcp6ca
31 Jan 2012 04:55
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

The LED (two actually) on that program should blink if USB is connected and the host is not sleeping. Also I just realized that MCLR was enabled on PIC18F2455 bootloader I attached previously. I am sure other people have had similar problems (I did) but many users here usually have a development kit...
by gcp6ca
23 Jan 2012 18:12
Forum: mikroC PRO for PIC General
Topic: pic18f2455 HID project why is mine not working?
Replies: 123
Views: 41385

Re: pic18f2455 HID project why is mine not working?

Try programming the attached hex file. It is Microchip HID bootloader created for PIC18F2455 at 8MHz. I programmed it on a PIC18F2550 anyways and it was working fine and my Windows 7 device manager detected it as PIC18F2455 Bootloader. It will let you know if you have a problem in hardware or in sof...
by gcp6ca
23 Jan 2012 17:42
Forum: mikroC PRO for PIC General
Topic: PWM Voltage Control
Replies: 18
Views: 10987

Re: PWM Voltage Control

Keep in mind that with PWM you are not actually controlling the voltage, instead you are controlling how long full voltage (12V) is applied and how long no voltage is applied. Since solenoids/inductors/motors take time to charge you can kind of treat the duty cycle as average proportional to the max...
by gcp6ca
22 Jan 2012 17:55
Forum: mikroC PRO for PIC General
Topic: PWM Voltage Control
Replies: 18
Views: 10987

Re: PWM Voltage Control

Both of your PWM circuits will work since the IRL530 is a logic level MOSFET. Usually a MOSFET driver is used to speed-up on/off time and also to reduce the on state resistance (reduces power loss in the MOSFET at high currents). Using a MOSFET driver will not make a big difference for your case if ...
by gcp6ca
09 Sep 2011 21:21
Forum: mikroC General
Topic: Microchip USB Bootloader?
Replies: 40
Views: 41438

Re: Microchip USB Bootloader?

If you are using the Bootloader hex file I provided then you do not need an external interrupt because it enables the internal pull-up just before checking RB4. I am not sure why you are getting that error message because I compiled with no problems. Are you using the latest version of mikroBasic (i...
by gcp6ca
08 Sep 2011 14:26
Forum: mikroC General
Topic: Microchip USB Bootloader?
Replies: 40
Views: 41438

Re: Microchip USB Bootloader?

Do not comment out or modify the Vectors procedure because it is used to redirect the Reset, Interrupt and Interrupt_Low functions. Bootloader redirect Reset from 0x0 to 0x1000, Interrupt from 0x8 to 0x1008 and Interrupt_Low from 0x18 to 0x1018. This part of the code has no use unless you are using ...

Go to advanced search