Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#byte ECCP1CON=0xfba;
ECCP1CON=0xfa;
Basically, the PIC18F4550 only has 2 real modulated PWM channels simultaneously (same period, different duty).Tom2 said:Is any one who know how to built 4 channel PWM (ECCP) with pic184550
This ECCP1CON settings are not correct for PIC18F4550's ECCP1.alec82 said:hi
i cant use eccp for 4 chanel pwm with ccs library.but u can write manual code in to the register's of eccp module .you can declare your register as variable in your code such as
address byte of register in the datasheet of micro in section function register mapCode:#byte ECCP1CON=0xfba;
and you can write direct in to the your register
for example:
Code:ECCP1CON=0xfa;
I suggest you check the PWM library source code by Microchip MPLAB C18.Tom2 said:Do you Know any link which give exaxmples code for this?