2010-12-31, 11:50:06
(This post was last modified: 2012-12-22, 13:39:36 by Mikael Gustavsson.)
Hi,
In my application I use the p33FJ256MC710 with UART1, frequency RUN application is 80MHz.
This is my setting in application:
I want use bootloader with UART1 , but the problem is how setting frequency 80Mhz in the code of boot loader the frequency is max 40Mhz
In my application I use the p33FJ256MC710 with UART1, frequency RUN application is 80MHz.
This is my setting in application:
Code:
_FOSCSEL(FNOSC_PRIPLL & IESO_OFF)
_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_XT)
_FWDT(FWDTEN_OFF & WINDIS_OFF)
main(){
_PLLPRE = 0; // 4Mhz crystal / 2 = 2Mhz
_PLLDIV = 74;
_PLLPOST = 0; /80Mhz / 2 = ***40 Mips***
_DOZE = 0;
while(OSCCONbits.LOCK!=1) {}; // Wait for PLL to lock
.............
............
.............
..............
.............
}
I want use bootloader with UART1 , but the problem is how setting frequency 80Mhz in the code of boot loader the frequency is max 40Mhz