please help since i stopped with this project which i downloaded from libstock.
USB Mouse And Keyboard, Using Only One PIC Microcontroller
https://libstock.mikroe.com/projects/vi ... controller
since i bought pic18f25k50 and pic18f45k50 i tried to customize but whatever i tried has no chance of adapting to that processor.
the project works great with the old pic18f4550 but it is impossible to adapt it to a little newer and pic18f25k50 or pic18f45k50 processors.
I don't know where I'm wrong and I would ask you for help.
this is how i adjusted the processor settings I added this
Code: Select all
FSEN_bit = 1;
OSCTUNE = 0x80; //3X PLL ratio mode selected
OSCCON = 0x70; //Switch to 16MHz HFINTOSC
OSCCON2 = 0x10; //Enable PLL, SOSC, PRI OSC drivers turned off
ACTCON = 0x90; //Enable active clock tuning for USB operation