Hi Ben,
Sorry about this
I have the same issue with a PIC16F1786 device where the Timer 2 prescaler can only set up to 16 and not 64,in the PWM component
Please can you organize me a fix
Missing prescaler setting Timer 2 [Solved]
Moderator: Benj
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Missing prescaler setting Timer 2 [Solved]
- Attachments
-
- 12.jpg (44.37 KiB) Viewed 3898 times
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- 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: Missing prescaler setting Timer 2
Hi Peter,
Good spot, these have now been added for you.
Good spot, these have now been added for you.
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
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Missing prescaler setting Timer 2
Thanks a million Ben
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Missing prescaler setting Timer 2
Hi Ben.
Thank you for the PWM fix it is working Fine
Can you please help me understand (attached is the Flowchart) before adding the pwm component the Flowchart used 3.6% memory(298words)
adding the PWM component and use the Enable makro and the Set duty cycle makro pushed the memory to 52.3%
This is also the reason that my PIC1508 Ran out of memory,
Why is the PWM component using so much memory ?
Please can you compile the attached Flowchart and compare the memory use with and without the PWM component , it seams to me not correct tzat a single component use 50% of memory
Thank you for the PWM fix it is working Fine
Can you please help me understand (attached is the Flowchart) before adding the pwm component the Flowchart used 3.6% memory(298words)
adding the PWM component and use the Enable makro and the Set duty cycle makro pushed the memory to 52.3%
This is also the reason that my PIC1508 Ran out of memory,
Why is the PWM component using so much memory ?
Please can you compile the attached Flowchart and compare the memory use with and without the PWM component , it seams to me not correct tzat a single component use 50% of memory
- Attachments
-
- AC Firmware FC V2.rar
- (131.51 KiB) Downloaded 184 times
-
- 2.jpg (34.18 KiB) Viewed 3887 times
-
- 3.jpg (33.62 KiB) Viewed 3887 times
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- 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: Missing prescaler setting Timer 2
Hi Peter,
For me when I compile the program as was (enable and set duty macro calls present in the program) I get this memory usage.
I take it you're using Flowcode 7.3. Did you do a complete installation or did you install the patch?
For me when I compile the program as was (enable and set duty macro calls present in the program) I get this memory usage.
I've tried the default compiler and also the latest XC8, both in Free mode and the stats are largely the same.Memory Summary:
Program space used 157h ( 343) of 2000h words ( 4.2%)
Data space used 7Ah ( 122) of 400h bytes ( 11.9%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of 37Ch bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
I take it you're using Flowcode 7.3. Did you do a complete installation or did you install the patch?
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
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Missing prescaler setting Timer 2
Hi Ben.
When I updated to 7.3 the page said that if you have 7.1 and higher you should only install the patch so I installed the patch,
I will do a uninstall now and do a new full installation
I am crazy with this stuff now
When I updated to 7.3 the page said that if you have 7.1 and higher you should only install the patch so I installed the patch,
I will do a uninstall now and do a new full installation
I am crazy with this stuff now
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- 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: Missing prescaler setting Timer 2
Fingers crossed this solves the problem for you, let us know how you get on.
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
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Missing prescaler setting Timer 2
Hi Ben.
Thank you for your support,
I did a full install and now I get the same values of memory usage as you.(PWM enabled and Duty cycle set )
I can kick myself as I did what your update page information was and it caused me big issues
Many Thanks Ben that you compiled and gave me a reference
Thank you for your support,
I did a full install and now I get the same values of memory usage as you.(PWM enabled and Duty cycle set )
I can kick myself as I did what your update page information was and it caused me big issues
Many Thanks Ben that you compiled and gave me a reference
- Attachments
-
- 1.jpg (35.85 KiB) Viewed 3870 times
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR