MPC5566 BAM eSCI serial configuration

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

MPC5566 BAM eSCI serial configuration

Jump to solution
940 Views
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?

Labels (1)
Tags (4)
0 Kudos
1 Solution
841 Views
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

View solution in original post

0 Kudos
3 Replies
842 Views
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 Kudos
841 Views
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 Kudos
841 Views
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 Kudos