Page 1 of 1

PWM Channel 2 - 18FxxK80 ** Informational **

Posted: Sat Sep 15, 2012 2:52 pm
by Sefi
I have found a configuration issue with the 18FxxK80 family of MCUs. Although the pin definition of RC2 is correctly labelled in the pins definitions section, this is not the case in the Defines section and hence PWM channel 2 will not work for this family of MCUs.

To make PWM channel 2 work you will need to make the following change:

Change the following line in the FCD file:

Code: Select all

Define55=#define MX_PWM_2_PIN 1
to

Code: Select all

Define55=#define MX_PWM_2_PIN 2
The following files are affected:

18F25K80.FCD
18F26K80.FCD
18F45K80.FCD
18F46K80.FCD

Cheers
Sefi

Re: PWM Channel 2 - 18FxxK80 ** Informational **

Posted: Sat Sep 15, 2012 8:43 pm
by Enamul
Hi,
Spot on..Thanks for the correction..

Re: PWM Channel 2 - 18FxxK80 ** Informational **

Posted: Tue Sep 18, 2012 9:04 am
by DavidA
Good spot! Ill add this to the list of things to fix!

Re: PWM Channel 2 - 18FxxK80 ** Informational **

Posted: Tue Sep 18, 2012 10:14 am
by Benj
Thanks for the spot, the problem has now been found and fixed.
FCD_Generate_File.zip
(50.53 KiB) Downloaded 368 times