UART for IBUS

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

UART for IBUS

3,637 Views
Andrei13
Contributor III

HI! I am using FRMD ke16z for a project. I want to get the data from a receiver using serial protocol IBUS. For that i used LPUART1 bc LPUART0 doesn t have a RX pin on arduino outputs. For using the LPUART1 i configed it with the ibus settings and init it. After that i used the HW Interrupt. The code doesn t work and i tried everything. TY!

I will attach the relevant code parts.

this is outside main:

Andrei13_0-1682336501493.png

in int main(void)

Andrei13_1-1682336552124.png

and after that, in while (1)

Andrei13_2-1682336579375.png

the the code never gets trough that if, so i think the interrupt never gets called.

Maybe it s a pin problem, i used PTC6 wich is pin 2 from J1.

0 Kudos
Reply
6 Replies

3,622 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport


Hello, my name is Pavel, and I will be supporting your case, I review your information, and one of the UART is used to debug the console, this does not have output through the Arduino pin if not this is connected through SWD.

Best regards,
Pavel

0 Kudos
Reply

3,614 Views
Andrei13
Contributor III

Yea! This is what i said. I used LPUART1 bc LPUART0 doesn t have a RX pin

0 Kudos
Reply

3,604 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I review the information on the schematic, and the schematic suggests using the PTC6.

Could you confirm this?

Pavel_Hernandez_0-1682456101886.pngPavel_Hernandez_1-1682456124479.png

PTA2 = LPUART0
Pavel_Hernandez_2-1682456182380.png

Best regards,
Pavel

 

0 Kudos
Reply

3,591 Views
Andrei13
Contributor III

I end up using LPUART2 and it s working. I dont know what is it with UART1 or PTC6 but it s not working.

0 Kudos
Reply

3,585 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry I think in the schematic it will be obvious the modification the PTC6 needs a modification of the jumper resistance. You need to change the resistor position of the R30 to the R31.

Best regards,
Pavel

 

0 Kudos
Reply

3,596 Views
Andrei13
Contributor III

Yes. Its PTC6

0 Kudos
Reply