AnsweredAssumed Answered

Cannot receive UART data in MKL36Z256VLH4

Question asked by aniket c on Mar 21, 2018
Latest reply on Mar 22, 2018 by aniket c

We need to use the UART functionality on pin PTE22 and PTE23 i.e.UART2_TX and UART2_RX in MKL36Z256VLH4. The data transmission is working as expected, but UART reception is not working. I have done following setting,

 

set the value of MUX to100 to use ALT4 in register PORTE_PCR23,

RIE, RE flags set to 1 in register UART2_C2 

clear RDMAS  in register UART2_C4 

 

when data is sent to microcontroller, value of UART_D does not change, also RDRF in register UART2_C2 remains 0. Also no interrupt for reception is generated. I guess the pin is not configured correctly. am I missing something?

 

Thanks in Advance.

Regards,

Aniket.

Outcomes