MC9S12E64 baudrate value

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S12E64 baudrate value

Jump to solution
1,314 Views
JohnDoe
Contributor II

Hello

 

A couple of questions:

Is 115200bps baurate is supported for MC9S12E64? I'm using a 29.4912mhz crystal freq. the calculated divisor is 8. No PLL.

 

What's the minimum baudrate divisor for SCI?

 

Thanks

Labels (1)
0 Kudos
1 Solution
446 Views
WadeH
Contributor III

The Reference Manual says:

"The value from 0 to 8191 written to the SBR12–SBR0 bits determines the module clock
divisor.

SCI baud rate = SCI module clock / (16 * SCIBR[12:0]) "

 

.. which seems to say that 115.2kBd is achievable. And, in the case of a 29.412MHz clock,

 the baud-rate error is 0%:

  115,200 = (29.4912e6/2) /(16 * D)  ===>   D= 8.000

 

For a 25MHz clock, the nearest baud-rate to 115.2k is

     (25e6/2 )/(16*7) = 111.6kBd...   which is  slow by about 3%, but works flawlessly

(for desktop debug distances, anyway) on my ne64 boards

View solution in original post

0 Kudos
2 Replies
447 Views
WadeH
Contributor III

The Reference Manual says:

"The value from 0 to 8191 written to the SBR12–SBR0 bits determines the module clock
divisor.

SCI baud rate = SCI module clock / (16 * SCIBR[12:0]) "

 

.. which seems to say that 115.2kBd is achievable. And, in the case of a 29.412MHz clock,

 the baud-rate error is 0%:

  115,200 = (29.4912e6/2) /(16 * D)  ===>   D= 8.000

 

For a 25MHz clock, the nearest baud-rate to 115.2k is

     (25e6/2 )/(16*7) = 111.6kBd...   which is  slow by about 3%, but works flawlessly

(for desktop debug distances, anyway) on my ne64 boards

0 Kudos
446 Views
JohnDoe
Contributor II

Thank you Wade. So the answer is yes. I was asking this because some microcontrollers limit they baudrate by 0.x rate of the frequency bus, and I didn't find any other restriction on the Manual.

 

John

 

0 Kudos