2009-06-25 11:02 PM
can speed problem at cpu 8 Mhz
2011-05-17 04:16 AM
I want to process the CPU at 8 Mhz. I encountered no problems till that value (it works fine at 64 and 16 mhz values) when i try 8 Mhz, CAN bus couldnt carry info. by the way, does it help if i set the prescaler as 0. what does it mean? i found no info about 0 prescaler in the manual. how i can get rid of this problem? thanks and regards..
/* HCLK = SYSCLK */ RCC_HCLKConfig(RCC_SYSCLK_Div1); /* PCLK2 = HCLK/2 */ RCC_PCLK2Config(RCC_HCLK_Div1); /* PCLK1 = HCLK/2 */ RCC_PCLK1Config(RCC_HCLK_Div1); /* PLLCLK = 4MHz * 4 = 16 MHz */ RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMul_4); // can regulations: CAN_InitStructure.CAN_SJW=CAN_SJW_1tq; //1 CAN_InitStructure.CAN_BS1=CAN_BS1_8tq; //8 CAN_InitStructure.CAN_BS2=CAN_BS2_7tq; //7 CAN_InitStructure.CAN_Prescaler=1;