Hi RadekS,
sorry but it dosent works:(
I think i have a Problem witch the PLL settings but wich?
Here my complet Config
//initialises the PLL
void PLL_init(void){
CPMUCLKS_PLLSEL = 1; //FBUS = FPLL/2. FBUS = 32MHz,
CPMUREFDIV_REFFRQ = 3; // Reference clock > 12MHz
CPMUREFDIV_REFDIV = 0x3; //FREF=8/(1+1) = 4MHZ
CPMUSYNR_VCOFRQ = 0x1; //FVCO is between 48MHZ and 80MHZ
CPMUSYNR_SYNDIV = 0x1; //FVCO = 2xFREFx(SYNDIV+1) = FVCO = 2x4x(7+1) = 64MHZ
CPMUPOSTDIV_POSTDIV = 0x0; //FPLL = FVCO/(POSTDIV+1). FPLL = 64MHZ/(0+1) FPLL = 64MHz
CPMUOSC_OSCE = 1; //External oscillator enable. 8MHZ. FREF=FOSC/(REFDIV+1)
while(!CPMUIFLG_LOCK){} // Wait for LOCK.
CPMUIFLG = 0xFF; // clear CMPMU int flags - not needed but good practice
}
//initialises CAN communications
void CAN_init(void){
//initialise MSCAN
CAN0CTL0 = 0x01;
while (!(CAN0CTL1_INITAK)){}
//initialise MSCAN
CAN0CTL0 = 0x01;
while (!(CAN0CTL1_INITAK)){}
CAN0CTL1_CANE = 1; /* Enable MSCAN module */
CAN0CTL1_CLKSRC = 0; /* Clock source is OSCCLK = 16 MHz */
CAN0CTL1_LOOPB = 0; /* Set to 1 for LoopBack Mode, 0 otherwise */
CAN0CTL1_LISTEN = 0; /* Not listen only mode */
CAN0CTL0_WUPE = 1; /* Enable WAKEUP */
CAN0BTR0 = 0xC3;
CAN0BTR1 = 0x67;
in the PLL Area i try some different values,i think thats my problem but i dont anderstand the exampel.me english is not so good
thanks for your help