MC9S12E64 baudrate value

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9S12E64 baudrate value

ソリューションへジャンプ
1,890件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
1,022件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
1,023件の閲覧回数
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 件の賞賛
返信
1,022件の閲覧回数
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 件の賞賛
返信