Powerup timer?

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
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times

Powerup timer?

Post by MJU »

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?

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: Powerup timer?

Post by Benj »

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 ;)

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times

Re: Powerup timer?

Post by MJU »

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. :lol:

Albert38
Posts: 23
Joined: Mon Jan 18, 2010 8:40 am
Has thanked: 2 times

Re: Powerup timer?

Post by Albert38 »

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.)

Post Reply