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:
in int main(void)
and after that, in while (1)
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.
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
Yea! This is what i said. I used LPUART1 bc LPUART0 doesn t have a RX pin
Hello, I review the information on the schematic, and the schematic suggests using the PTC6.
Could you confirm this?
PTA2 = LPUART0
Best regards,
Pavel
I end up using LPUART2 and it s working. I dont know what is it with UART1 or PTC6 but it s not working.
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
Yes. Its PTC6