PWM component alternate port problem with PIC18F2520

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
dvcam99
Posts: 89
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

PWM component alternate port problem with PIC18F2520

Post 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 77 times
Foto too:
PWM Problem.jpg
PWM Problem.jpg (120.66 KiB) Viewed 1347 times
It would be great if some one could fix this issue.

Thanks in advance
Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: PWM component alternate port problem with PIC18F2520

Post 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.

dvcam99
Posts: 89
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: PWM component alternate port problem with PIC18F2520

Post by dvcam99 »

Hi Ben,

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

This is the solution.

BR

Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

Post Reply