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
P16F1827 PORTB Interrupt (IOC)
Moderator: Benj
- 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)
Hello,
What property settings are you using for the RC5 component in v5?
What property settings are you using for the RC5 component in v5?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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)
Hi Ben
Here the error messages
Here the RC5 properties window and my settings. It should be noted that RC5 compo is compiled and working correctly on FCv4.
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'
- Attachments
-
- RC5properties.jpg (79.24 KiB) Viewed 3681 times
Best Regards FOTIS ANAGNOSTOU
- 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)
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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)
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.
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 (79.35 KiB) Viewed 3648 times
Best Regards FOTIS ANAGNOSTOU
- 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)
Hello Fotios,
Ok thanks for letting me know, we are looking into the problem.
Ok thanks for letting me know, we are looking into the problem.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel