MPC5566 BAM eSCI serial configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5566 BAM eSCI serial configuration

ソリューションへジャンプ
1,303件の閲覧回数
pking
Contributor I

I'm just starting to utilize the BAM through eSCI. Starting with the password exchange at the beginning, I tried to use the serial configuration specified in the manual (section 16.3.2.3.2) which is "one start bit, eight data bits, no parity and one stop bit". When I send the password, a response comes back but my serial terminal drops one of the bytes. If I change my config to have odd parity instead of no parity, then I receive the full password back correctly.

Is this an error in the reference manual?

ラベル(1)
タグ(4)
0 件の賞賛
返信
1 解決策
1,204件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Ryan,

no, the parity is not used. This looks like something different. Are you waiting until the echo character is received? Transmission of next character should not start until echo of previous character is received. What is your crystal frequency? Are you sure the baud rate is correct?

Regards,

Lukas

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,205件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Ryan,

no, the parity is not used. This looks like something different. Are you waiting until the echo character is received? Transmission of next character should not start until echo of previous character is received. What is your crystal frequency? Are you sure the baud rate is correct?

Regards,

Lukas

0 件の賞賛
返信
1,204件の閲覧回数
pking
Contributor I

This looks to have been my problem. I didn't realize serial mode echo-ed each byte, was expecting each message. After waiting byte-per-byte, everything works with no parity. Thanks!

0 件の賞賛
返信
1,204件の閲覧回数
pking
Contributor I

I'm only sending the password, then reading the echo. My understanding is the echo doesn't come until I've sent the entire password, correct? Or am I supposed to wait for an echo with each byte?

My crystal frequency is 20 MHz, so I'm using 24000 baud rate.

0 件の賞賛
返信