Page 1 of 1

PWM component alternate port problem with PIC18F2520

Posted: Thu Jan 13, 2022 4:08 pm
by dvcam99
Hello Matrix,

I belive I found a Bug in the PWM component with PIC18F2520.

If you assign PWM Channel-2 to the alternate port (Port B3), the hardware is not giving you the PWM signal

Channel-2 Port C1 is OK

Channel-1 Port C2 is OK

Attached the FC file:
PWM Check.fcfx
(8.07 KiB) Downloaded 79 times
Foto too:
PWM Problem.jpg
PWM Problem.jpg (120.66 KiB) Viewed 1372 times
It would be great if some one could fix this issue.

Thanks in advance
Dirk

Re: PWM component alternate port problem with PIC18F2520

Posted: Thu Jan 13, 2022 5:15 pm
by BenR
Hi Dirk,

If you go into the Build -> Project Options then look at the Configure section there is a setting marked CCP2 Mux, You need to change this from RC1 to RB3.

Hopefully this will get things working for you.

Re: PWM component alternate port problem with PIC18F2520

Posted: Thu Jan 13, 2022 5:41 pm
by dvcam99
Hi Ben,

many thanks!! You saved my day!!
;)

This is the solution.

BR

Dirk