wie funktioniert beim MC9SO8 die serial port ausgabe?

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

wie funktioniert beim MC9SO8 die serial port ausgabe?

781 Views
joachimsasse
Contributor I

UART Modus "normal" RxD und TxD haben separate Pins

Code:  

CharNumber = sprintf(dest, "INFO: %s\n", pDbgMsg);  // dest = Pointer Anfangsadresse

Snd = &CharNumber;                        // Pointer zu Zeichenanzahl sprintf
ReturnAM2 = AM2_SendBlock(dest, CharNumber, Snd);

Beobachtung:

ISR(AM2_InterruptTx)

.

.

SCI2D = OutBuffer[OutIndxR];   // SCI2D bleibt auf 0x00, nach Befehl STA SCI2D

Im UART Loop Modus wird char vom Accu nach SCI2D kopiert

0 Kudos
3 Replies

532 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

I just tested SendBlock() with HCS08QE128, there is no problem on my side. See attached video.

Two points I can think of:

1. use SendChar() to test if your program can output a single character to terminal.

2. make sure the clock is curate. we can test output with lower baud rate first. for example, 4800bps


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

532 Views
joachimsasse
Contributor I

Thank you Jennie for your feedback.

Best regards Joachim

Am 07.12.2017 10:02, schrieb ZhangJennie:

NXP COMMUNITY

RE: WIE FUNKTIONIERT BEIM MC9SO8 DIE SERIAL PORT AUSGABE?

reply from ZhangJennie in CodeWarrior for MCU - View the full discussion

0 Kudos

532 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

welcome!

0 Kudos