9 bit Serial Example using PE (Freedom KL25z)

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

9 bit Serial Example using PE (Freedom KL25z)

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

Labels (1)
1 Solution
661 Views
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

View solution in original post

2 Replies
662 Views
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

661 Views
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 Kudos