I think you should read the datasheet. The chips with USB have a wide variety oscillator PLL and divider configuations. Your chip is obviously not runnng at 20Mhz - internally, even though the oscillator itself is running 20.
I think you should read the datasheet. The chips with USB have a wide variety oscillator PLL and divider configuations. Your chip is obviously not runnng at 20Mhz - internally, even though the oscillator itself is running 20.
Charles Linquist
Doesn't the meprogrammer have all the settings built into their little drop down menu? Therefore it should just be a matter of selecting the correct settings correct?
Many come here thinking they can use the drop down and many end up learning how to set the configs the "right" way.
This should help you get started on that path.
http://www.picbasic.co.uk/forum/showthread.php?t=543
Dave
Always wear safety glasses while programming.
I must admit, programming for many years in ASM, I always set my configs through the MPLAB menu. Always worked great, and ALWAYS messed me up when I had to program more chips for the same job. Take the time to learn to set them in your program. You will hate it at first, but later you will be so happy when you don't have to remember how you set them for each application.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Placeat the beginning of your code and you should be sorted.Code:DEFINE OSC 48
Cheers
Sean.
Last edited by sean-h; - 6th March 2011 at 11:21.
Bookmarks