P16F1827 PORTB Interrupt (IOC)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times

P16F1827 PORTB Interrupt (IOC)

Post by fotios »

Hello

Is there any upgrade for 16F1827?

a) In FC v4.5 PortB interrupt is not available.

b) In FC v5 the RC5 component is not working, i receive the known compiller error messages:
unknown identifier "RC5_1_MX_RC5_PWM_C2CON'
invalid operand "RC5_1_MX_RC5_PWM_C2CON'

Thank you
Best Regards FOTIS ANAGNOSTOU

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: P16F1827 PORTB INTERRUPT (IOC)

Post by Benj »

Hello,

What property settings are you using for the RC5 component in v5?

User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times

Re: P16F1827 PORTB INTERRUPT (IOC)

Post by fotios »

Hi Ben
Here the error messages

Code: Select all

Remote Control Handset MINI_v5.c(908:2): error: unknown identifier 'RC5_1_MX_RC5_PWM_C2CON'

Code: Select all

Remote Control Handset MINI_v5.c(908:2): error: invalid operand 'RC5_1_MX_RC5_PWM_C2CON'
Here the RC5 properties window and my settings. It should be noted that RC5 compo is compiled and working correctly on FCv4.
Attachments
RC5properties.jpg
RC5properties.jpg (79.24 KiB) Viewed 3681 times
Best Regards FOTIS ANAGNOSTOU

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: P16F1827 PORTB INTERRUPT (IOC)

Post by Benj »

Great thanks, I have managed to replicate the problem now.

Please can you try this updated component C file and see if this allows you to compile correctly.
Attachments
FC5_PIC_RC5.c
(28.17 KiB) Downloaded 262 times

User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times

Re: P16F1827 PORTB Interrupt (IOC)

Post by fotios »

I finally managed to solve the compiling problem on FCv5. It is some odd, but... works!
The only thing that needed, is the activation of... whole the RC5 component. I mean both Receiver and Transmitter. Then the code is compilled on P16F1827 correctly and the project works perfectly on actual hardware. In the attached picture is shown the RC5 compo properties configuration. The only drawback is the loss of RB.0 and RB.1 ports, though no so much worry. For the given project - and for a feature upgrade to a bigger one - all RA.X ports remain available.
I will post the actual project in a new thread, i firstly have to draw the PCB.
Attachments
Remote_mini.jpg
Remote_mini.jpg (79.35 KiB) Viewed 3648 times
Best Regards FOTIS ANAGNOSTOU

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: P16F1827 PORTB Interrupt (IOC)

Post by Benj »

Hello Fotios,

Ok thanks for letting me know, we are looking into the problem.

Post Reply