AnsweredAssumed Answered

Generate baudrate for TWR-K60N512

Question asked by Ricardo Mota on Mar 11, 2015
Latest reply on Mar 12, 2015 by Mark Butcher



I'm seeking from help on trying to set the baudrate dor UART5 on MK60DN512ZVMD10 on my TWR-K60N512. I'm trying to follow this formula, according to the datasheet of the micro-controller:


  • UART baud rate = UART module clock / (16 × (SBR[12:0] + BRFD))


I've checked in the same datasheet that the "UART module clock" is sourced by bus clock on micro-controller, and I was thinking of using the default values for bus clock on micro-controller for my board, checking section 5.5.1 Clock divider values after reset of the datasheet:




From my understanding, the micro-controller defaults to a bus clock of "divide by 8", my question is, relative to which clock value?


Is it needed to configure all the registers and components of the MCG and SIM modules to generate a bus clock before attempting to set the UART baudrate, like the following diagram suggests?




I really appreciate your help and share of knowledge and ask for some patience cause i'm really still a beginner trying to get into the world of ARM micro-controllers.


Many thanks in advance.