HPLL and USART problem

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Luciano
Posts: 13
Joined: Fri Feb 12, 2010 2:00 pm

HPLL and USART problem

Post by Luciano » Fri Jul 09, 2010 10:13 am

I am using a PIC 18F4525 with a 20MHz quartz oscillator, and the USART serial transmission at 115200 baud.
everything works fine using the USART library, but if I insert the HPLL to work at 40Mhz the USART stops working.

is there anything else, in addition to the instructions of the manual, that should be modified in order to have the USART working at 40Mhz? or else the USART module just does not work with HPLL?

many thanks
Luciano

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Post by CharlieM » Fri Jul 09, 2010 11:01 am

What are you setting your xtal to? if you are using a 20 mhz osc and pll then you need to set you xtal to 80.
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Fri Jul 09, 2010 12:45 pm

The 4525 is rated for 40MHz operation, and the PLL is 4X, so the max ext crystal freq is 10MHz.

Luciano
Posts: 13
Joined: Fri Feb 12, 2010 2:00 pm

Post by Luciano » Mon Jul 12, 2010 8:31 am

that clarifies the problem! many thanks
Luciano

Post Reply