This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi BU friends,
(1) Q format in HRPWM
If we use CMPA(CMPAHR), we need to write the CMPA:CMPAHR:reserver bits.
It seems use Q16 in this situation. Why PWM duty in Q15 format? Up-down counter?
(2) The CMPxHR must be bigger than 0x0100? The TIDM-02002 use the codes:
// // the below is to get around the errata in HRPWM // if((CLLLC_pwmDutyASec_ticks & 0x00FF00) == 0) { CLLLC_pwmDutyASec_ticks = CLLLC_pwmDutyASec_ticks | 0x000100; }
(3) The rounding 0x0080 add the CMPxHR automatically or manually?
(4) What's the difference between HRCNFG.CTLMODEx=1 or =0?
What 's the means of CMP/TBPRD controls the MEP?
What 's the means of TBPHS controls the MEP? Could you give a example?
Thanks,
Minghan
1. CMPA and CMPAHR combine as shown in the equations in our driverlib examples.
2. Thats correct, the values should be from 1 to FF
3. Rounding should be manual
4. You decide between duty/period HR control and Phase control. Whichever one you need in your application.