MC9S08GT60 SCI baud rate modulo divisor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S08GT60 SCI baud rate modulo divisor

3,511 次查看
cschai
Contributor I
hi,
anyone has MC8S08GT60 SCI baud rate modulo divisor table, register SCIxBDH and SCIxBDL (SBR12:smileyfrustrated:BR0)?
i cant find in the data sheet. Freescale should have included it.

Thanks.
标签 (1)
0 项奖励
回复
4 回复数

1,030 次查看
peg
Senior Contributor IV
Hi cschai,
 
It is easiest to use the spreadsheet in AN2494 for this, helps with all clock related issues as well.
 
Also you may be able to dig out some old posts by me on achieving "standard" baudrates on these devices.
 
0 项奖励
回复

1,030 次查看
cschai
Contributor I
thanks!
but did AN2494 really tell the SCI baud rate divisor? it just explain the ICG, is it?
i cant find any SCI baud rate divisor table in AN2494 although it did mention about SCI baud rate!

for example:
if my bus freq = 8Mhz
required baud rate = 19200
from baud rate = bus freq / (16*SBR)
thus SBR ~= 26

what is the setting of SBR to get approximate baud rate divisor of 26?

thanks!
0 项奖励
回复

1,030 次查看
peg
Senior Contributor IV
Hi,
 
There is no actual table as it is just the raw 13-bit binary value (e.g. 1=1, 2=2 and 3=3 etc). Mostly you just clear the high register and load the divisor into the low one (as it generally fits in one byte).
The associated spreadsheet with the quoted AN will tell you exactly what to load if you plug in all your details.
 
In your case the 26dec just goes straight into the low byte of the register (with high byte cleared)
 

Message Edited by peg on 2007-02-0901:23 PM

0 项奖励
回复

1,030 次查看
cschai
Contributor I
Peg,

Thanks....
0 项奖励
回复