Hi,
i want enable on 18f4525 the portb.3 with out pwm ccp2 and disable ccp1 it's possible ?
I have write the code but this not good, i have copy little step.
HELP ME
ASM
__CONFIG _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
__CONFIG _CONFIG2L, _PWRT_OFF_2L & _BOREN_OFF_2L & _BORV_3_2L
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
__CONFIG _CONFIG3H, _PBADEN_OFF_3H & _LPT1OSC_OFF_3H &
_CCP2MX_PORTBE_3H
__CONFIG _CONFIG4L, _DEBUG_OFF_4L & _XINST_OFF_4L & _LVP_OFF_4L & _STVREN_ON_4L
ENDASM
.....
DEFINE CCP2_REG PORTB
DEFINE CCP2_BIT 3
.....
CCP2CON = %00001100
.......
HPWM 2,DIMMER,1000
Bookmarks