In the expert config-screen I find that the power up timer is by default disabled.
Isn't it good practice to enable it at all times?
It seems to me that enabling this timer makes the PIC more stable @ startup?
Is there a reason the timer is set disabled as default?
I'm working on a small project that has to be as stable as possible, and have a clean reset after a power failure.
In stead of using a separate POR circuit, my guess is that enabling PWRT (PWRTEN) is easier?
Powerup timer?
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: Powerup timer?
Hello,
Yes you should probably always use the power on timer unless you are certain of your power rails or you require a very fast startup.
The configuration is off by default because we take our PPP configuration data from some of the Microchip resource files. This means we dont have to sit there and code every single setting for every single chip, which to be honest would take months and would need to be redone everytime there are new chips released.
This is also why things that should probably be disabled by default eg Watchdog timer and LVP are not automatically done for you.
A final word on this is that having non default values may force you to find out what the configuration does and therefore gain a greater understanding of the device. Maybe I am just kidding myself here
Yes you should probably always use the power on timer unless you are certain of your power rails or you require a very fast startup.
The configuration is off by default because we take our PPP configuration data from some of the Microchip resource files. This means we dont have to sit there and code every single setting for every single chip, which to be honest would take months and would need to be redone everytime there are new chips released.
This is also why things that should probably be disabled by default eg Watchdog timer and LVP are not automatically done for you.
A final word on this is that having non default values may force you to find out what the configuration does and therefore gain a greater understanding of the device. Maybe I am just kidding myself here

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
-
- Posts: 502
- Joined: Wed Nov 07, 2007 6:51 pm
- Location: Antwerp Belgium
- Has thanked: 121 times
- Been thanked: 108 times
Re: Powerup timer?
Thanks BenJ!
I think the power of Flowcode is "No coding, No limits".
For me this means not have to read 484 pages of datasheet, and still get something to work.
I think the power of Flowcode is "No coding, No limits".
For me this means not have to read 484 pages of datasheet, and still get something to work.

Re: Powerup timer?
I have some problems with taking always the defaults. For example see this Topic. It took me days to find out why my program was running well in simulation and did not work in the hardware. For these kind of settings it was very handy to have a option selection to set the option of using the Comparator on GP0/GP1 or use the pins as digital input. Now it took a lot of precious time to find how to handle with these chip. (And by the way there are a lot more PIC chips that have these setting by default on Comparator.)