2015-01-31 04:44 AM
Hi,all.I am so confusing about the term tpclk on page 662,what does this PCLK mean exactly?pclk1 or just the word pclk?In my opinion,I guess the word tpclk represent 1/fpclk1,am I right?
Thanks for hlep. #can #tpclk2015-01-31 07:51 AM
PCLK is the clock of the APB (Peripheral Bus) to which the CAN unit is attached. The period of the clock is 1/PCLK seconds.
The CAN peripheral of the STM32F1 designs is on APB1 (the slower bus)2015-01-31 09:04 AM
I guess so,just not sure.Thank you very much.
But,if I configure the APB1 to its max frequency,36MHz,then tpclk will be (1/36M),which equal to 28ns. My project require a 200ns time quanta,how can I get this?2015-01-31 11:25 AM
Well from 72 MHz (36 MHz on the bus) you're not going to get exactly 200 ns.
You'd perhaps need to run the bus at 25, 30 or 35MHz. Would 194.44 ns work? Getting to specific CAN baud rates is going to be a combination of APB clock, prescaler, and arrangement of SWJ,BS1 and BS2 settings. So perhaps start with the desired baud rate and factor those.2015-01-31 10:28 PM
I don't have any idea yet,but I can take a try today,thank you very much,clive1.