MC9S08QE32 SCI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S08QE32 SCI

Jump to solution
1,336 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,100 Views
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!

View solution in original post

0 Kudos
Reply
4 Replies
1,101 Views
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 Kudos
Reply
1,100 Views
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 Kudos
Reply
1,100 Views
Lundin
Senior Contributor IV

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

0 Kudos
Reply
1,100 Views
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 Kudos
Reply