18F4431 40MHz Crystal frequency

Status
Not open for further replies.

dmta

Member level 2
Joined
Mar 25, 2013
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Earth
Visit site
Activity points
1,650
Hi all,

What should I do to operate a 18F4431 at 40MHz?

I tried using a 10MHz crystal with 2x22pF caps with the "HS oscillator, PLL enabled (clock frequency=4XFOSC1)" but it didn't work [I blinked an LED with 1Hz and the timing was all wrong].

I used a 4MHz with the same option but it also gave me the same result.

The pic works fine with a 20MHz crystal at HS mode.

What have I done wrong? Here is the bit configuration that I used

Regards
 

Attachments

  • 40M.JPG
    81.4 KB · Views: 76

Are you sure the configuration bits are being set to enable the PLL?
Why do you have internal/external switchover enabled?...Are you also using an external clock?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…