AnsweredAssumed Answered

A bug? PE don't set SOPT2[UART0SRC]?

Question asked by markosiponen on Jun 5, 2013
Latest reply on Jun 5, 2013 by markosiponen

I try to generate code for a MKL25Z128VLK4 with processor expert. I have added the Serial_LDD. But I can't find where it sets the SIM_SOPT2[UART0SRC]. SIM_SOPT2[PLLFLLSEL] is set.

 

Is there a bug in PE?

 

  /* SIM_SOPT2: PLLFLLSEL=1 */
  SIM_SOPT2 |= SIM_SOPT2_PLLFLLSEL_MASK; /* Select PLL as a clock source for various peripherals */
  /* SIM_SOPT1: OSC32KSEL=3 */
  SIM_SOPT1 |= SIM_SOPT1_OSC32KSEL(0x03); /* LPO 1kHz oscillator drives 32 kHz clock for various peripherals */
  /* SIM_SOPT2: TPMSRC=1 */
  SIM_SOPT2 = (uint32_t)((SIM_SOPT2 & (uint32_t)~(uint32_t)(
               SIM_SOPT2_TPMSRC(0x02)
              )) | (uint32_t)(
               SIM_SOPT2_TPMSRC(0x01)
              ));                      /* Set the TPM clock */

Outcomes