AnsweredAssumed Answered

Uart1 doesn't work on Kinetis MKL25Z128VLK4

Question asked by Ruben Dario Villafuerte Arroyo on Jan 23, 2014
Latest reply on Jan 24, 2014 by Ruben Dario Villafuerte Arroyo

I have a problem with a Kinetis microcontroller KL25Z128VLK4 with mask  2N97F.

On CodeWarrior 10.3 and Processor Expert, I developed an application using USART1 on pin 58 ( PTC3/LLWU_P7/UART1_RX/TPM0_

CH2/CLKOUT ) . The microcontroller has a crystal 8MHz and the PLL as PEE ( with Processor Expert ) at 96MHz with CoreClock at 48MHz and BusClock at 24MHz

With this configuration clock, USART1 not correctly read the data sent by a device that sends characters to 9600bps 8O1 , I changed to 9600bps 8N1 but neither worked, changed to 19200 8N1 but neither worked. The ErrorCallback of  USART1 throws Framing, Noise and Parity Error.

This same configuration works properly on Freedom board FRDM-KL25Z.

Perform a test by changing the configuration of the CPU ( Processor Expert component ) to use the internal oscillator and setting the FLL as FEI at 20.97152Mhz, CoreClock at 20.97152MHz and BusClock at 20.97152MHz bus . With this configuration the USART1 successfully receives the data to any baudrate settings and any parity.

I return to the configuration of the PLL to 96MHz and changed USART (using the same component Extert Processor )
to USART0 on pin 51 ( PTB16/TSI0_CH9/SPI1_MOSI/UART0_RX/TPM_CLKIN0/SPI1_MISO ) and reading is correct for any configuration.

I want to know what the problem is , because if that is not possible a correct reading with USART1 I'll have to modify the PCB design to use the USART0 .