MC9S08QE32 SCI

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

MC9S08QE32 SCI

跳至解决方案
981 次查看
maoxiangyu
Contributor II

Hi,

    I encountered a problem when using SCI. The data in SCI is incorrect and when I send three different data "A" “B” “C”, it return the value of "61" "21" "38", Can you tell me why?

Original Attachment has been moved to: FreeScale.rar.zip

标签 (1)
0 项奖励
回复
1 解答
745 次查看
maoxiangyu
Contributor II

Hi, Daniel

    The problem has been solved, it turned out to be the problem of MAX3232. This level switch chip was damaged and the voltage in Serial Port changed, thank you all!

在原帖中查看解决方案

0 项奖励
回复
4 回复数
746 次查看
maoxiangyu
Contributor II

Hi, Daniel

    The problem has been solved, it turned out to be the problem of MAX3232. This level switch chip was damaged and the voltage in Serial Port changed, thank you all!

0 项奖励
回复
745 次查看
maoxiangyu
Contributor II

Hi, don

    The Baud rate is correct for it has been tested in MC9S08QE128 by FAE of FreeScale in ShangHai and he made it clear that the program works ok in his DEMO Board!

    We've send out a 55 (hex) value out the transmitter and MCU returns 0x55, but only this number correct! The dumb terminal shows the same result when MCU send datas!

0 项奖励
回复
745 次查看
Lundin
Senior Contributor IV

You have to measure the baudrate on your board. It might have a different clock setup.

0 项奖励
回复
745 次查看
donw
Contributor IV

Usually the problem is either:

-Baud rate is wrong

-the Invert bit in the config registers is the wrong polarity.

To check the baud rate, send out a 55 (hex) value out the transmitter & look at the result on a 'scope

you should see a square wave.  (or use a dumb terminal, should show U character)

don

0 项奖励
回复