wie funktioniert beim MC9SO8 die serial port ausgabe?

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

wie funktioniert beim MC9SO8 die serial port ausgabe?

1,150件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

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

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

901件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

welcome!

0 件の賞賛
返信