hi guys have anyone got set an example for this on the 18f47k40

looking to put PWM4 using timer 2 on port c.1


tryied using

define HPWM4_TIMER 2 ' HPWM4 TO USE TIMER 2 - USED FOR HUB_OE DIMMING CONTROL
RC1PPS = $08 ' SET PWM4 TO PORTC.1
tris portc.1 =0
PMD1.2 = 0 ' allow timer 2
PMD3.3 =0 , allow PWM4

hpwm 4 ,PWM_Duty ,1000 'CPP4 Wduty , freq