9 bit Serial Example using PE (Freedom KL25z)

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

9 bit Serial Example using PE (Freedom KL25z)

ソリューションへジャンプ
1,194件の閲覧回数
ylee
Contributor II

I am trying to make 9-bit to 8-bit translator from a device using 9-bit serial protocol to PC.

I can set up the UART 0 Port as 9-bit and can send out using the method sendblock method of the UART component from PE.

But when I set up receiving part i ended up at PE_ISR debut halt.

Can anyone have very basic 9-bit data receiving example?

Yonggon

ラベル(1)
1 解決策
920件の閲覧回数
santiago_lopez
NXP Employee
NXP Employee

Hi Yonggon

Attached you will find an example using CodeWarrior 10.6 + Processor Expert. It is configured to recieve a block of 5 9-bit transactions and store them in au8RcvData after completion. It is using UART0 on PTA1 and PTA2 with a baudrate of 115200.

Hope it helps :smileyhappy:

Saludos

元の投稿で解決策を見る

2 返答(返信)
921件の閲覧回数
santiago_lopez
NXP Employee
NXP Employee

Hi Yonggon

Attached you will find an example using CodeWarrior 10.6 + Processor Expert. It is configured to recieve a block of 5 9-bit transactions and store them in au8RcvData after completion. It is using UART0 on PTA1 and PTA2 with a baudrate of 115200.

Hope it helps :smileyhappy:

Saludos

920件の閲覧回数
ylee
Contributor II

Saludos, thank you very much. I just ran your code and it works well. It seems that the ring buffer library I grabbed from somewhere does not work well with 9-bit option.

Best regards,

Yonggon

0 件の賞賛
返信