PWM Channel 2 - 18FxxK80 ** Informational **

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Sefi
Posts: 56
Joined: Mon Sep 29, 2008 10:26 am
Has thanked: 9 times
Been thanked: 14 times

PWM Channel 2 - 18FxxK80 ** Informational **

Post 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

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

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

Post by Enamul »

Hi,
Spot on..Thanks for the correction..
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

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

Post by DavidA »

Good spot! Ill add this to the list of things to fix!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

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

Post by Benj »

Thanks for the spot, the problem has now been found and fixed.
FCD_Generate_File.zip
(50.53 KiB) Downloaded 359 times

Post Reply