AnsweredAssumed Answered

FRDM-KE06Z Problems with the PWM and CAN, need help!!

Question asked by yuqi li on Mar 20, 2015
Latest reply on Mar 24, 2015 by yuqi li

Hello to all,

I got the board recently and have tested the modules with the code in the Typical used, now I have 2 problems:

1. I used the Processor Expert to generate a PWM signal with 400ms period and 100 starting pulse width, then I checked the signal by a oscilloscope ,I found the period was 360ms and there's always 16% error with the period and the duty time after I use the SetDutyMS(). And the method SetRatio16() seems don't work at all, the ratio was always <1% regardless the number I set. Same situation after changed the FTM.


int main(void)


  LDD_TError Error;

  LDD_TDeviceData *MyPWMPtr;

  unsigned int i,j;


  /* Write your code here */

  MyPWMPtr=PWM1_Init((LDD_TUserData *)NULL);

  for(i = 0; i < 65535; ++i) {



      for(j = 0; j < 65535; ++j);}





2. The CAN module can't generate any signal to the pins: I used the looping mode for testing, the receiver can receive the frames sent by it self in the debug mode , but there is no signal detected on the CAN_H or CAN_L.


Thanks very much for the help !!