config the MC9S08AW60 to work with SCI in 115200 baud

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

config the MC9S08AW60 to work with SCI in 115200 baud

2,634 次查看
SHUSH
Contributor I
Hi,
 
I need help to configure the SCI of my MC9S08AW60 to work in 115200 baud rate .
 
Thanks,
 
Shai
标签 (1)
0 项奖励
回复
4 回复数

632 次查看
admin
Specialist II
If you tell me what your bus speed is, I can help you set up the registers.  I recently did it for a MCS08AW16.
 
-Tomahawk
0 项奖励
回复

632 次查看
Sany
Contributor III
Sorry to steal this thread. I using external crystal 16MHz without FLL. I believe the bus frequency is 8MHz. However I set the BR to 52 and I tried communicate with Hyperterminal, it produced some junk data. Any more thing I need to aware other than BR, parity bit, number of bits?
0 项奖励
回复

632 次查看
admin
Specialist II


Sany wrote:
Sorry to steal this thread. I using external crystal 16MHz without FLL. I believe the bus frequency is 8MHz. However I set the BR to 52 and I tried communicate with Hyperterminal, it produced some junk data. Any more thing I need to aware other than BR, parity bit, number of bits?



Nope that should do it.  I set up my project to send data to HyperTerm.  A BR of 52 looks correct for 9600 baud.  Make sure HyperTerm has the same parity and bit settings.  Oh, also make sure of your bus speed.  I've seen junk like that on HyperTerm when the baud rate wasn't quite correct.
0 项奖励
回复

632 次查看
Pingu
NXP Employee
NXP Employee

SCI baud rate = BUSCLK/(16xBR)

See section 11.2.1 SCI Baud Rate Registers (SCIxBDH, SCIxBHL) of the databook for the register description.

If you are having a specific problem with this module please provide me with more details on you system set up.

Pingu

0 项奖励
回复