Tool/software:
Hi All,
Question about auto conversion
When ON: CMPAHR = (fanction(PWMduty*PWMperiod)<<8
When OFF: CMPAHR = (fanction(PWMduty*PWMperiod)*MEP scale factor + constant)<<8
From this formula, I recognise that the difference between ON and OFF is that the MEP scale factor and We recognise that the difference is whether the constant is entered automatically or manually.
When ON, is the result of constant = TBCLK/MEP time per step automatically entered?
Or is the default of 0.5 automatically entered?
Best Regards,
Ito