MC9S08QE32 SCI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
982件の閲覧回数
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 解決策
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 件の賞賛
返信
4 返答(返信)
747件の閲覧回数
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 件の賞賛
返信
746件の閲覧回数
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 件の賞賛
返信
746件の閲覧回数
Lundin
Senior Contributor IV

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

0 件の賞賛
返信
746件の閲覧回数
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 件の賞賛
返信