rajib.das
Member level 3
Hi Guys
I want to generate PWM from PIC32MX250F128D. I know I Have to select one of Five OCx pins. But have no clue which pin numbers are those represents OCx pins. And How to do that.
Thanks
- - - Updated - - -
I want to generate PWM from PIC32MX250F128D. I know I Have to select one of Five OCx pins. But have no clue which pin numbers are those represents OCx pins. And How to do that.
Thanks
- - - Updated - - -
Code:
PWM_B7 = 0; // set PORTB7 to 0
PWM_B7_Direction = 0; // designate RB7 pins as output
Unlock_IOLOCK();
PPS_Mapping(_RPB7, _OUTPUT, _OC1);
pwm_period = PWM_Init(10000, 1, 0, 2);
Lock_IOLOCK();