Always ON Power Design!

From DIY contraptions to sophisticated FreeEMS-specific designs! Plus general hardware development!
User avatar
Dan
LQFP144 - On Top Of The Game
Posts: 1204
Joined: Tue Mar 02, 2010 2:33 pm
Location: Australia

Re: Always ON Power Design!

Post by Dan »

Could we maybe incorporate a 5v supervisory/monitoring IC to the CPU RESET pin perhaps? If our CPU doesnt have voltage monitors internally,etc.

Microchip have good ones, MCP120-450 is the one I have had good experience with.

http://au.element14.com/microchip/mcp12 ... dp/9758429
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Always ON Power Design!

Post by Fred »

I'm pretty sure it's well behaved in this way. We can do some testing soon, we being someone, maybe even me, though someone with a variable supply would be a better candidate.

The CPU has a low V interrupt which I handle (and don't do much with other than count events). I've never seen it fail to come up, BUT, I've never had it be asleep when the power has gone low. If I leave that interrupt enabled when asleep, it should trigger a wake up also, I think. If that's true, then it will behave just the same as every other time.

So yes, 99.9999% sure it's a non-issue, but thanks for pointing it out, Marcos!

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
calkai
TO220 - Visibile
Posts: 7
Joined: Mon Nov 17, 2008 12:35 pm

Re: Always ON Power Design!

Post by calkai »

Why not to just use a built-in ignition switch controlled LDO such as LM9070 to wake up MCU first?
http://www.ti.com/lit/ds/symlink/lm9070.pdf
Then the MCU starts to control of the other actuator power.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Always ON Power Design!

Post by Fred »

That doesn't actually solve the problem, and offers a feature that we don't need, IE, controlled turn off. The idea is to _never_ turn off, and to just go to sleep and wake up. Resets can be performed through software to switch states and/or reset the device to give it a fresh start. That document, though, has an example circuit for the power input, which I've captured here:

Image

They clearly do not use something with hysteresis on the input to the micro, which is likely a good example to follow, for the aforementioned reasons of ending up locked out without a key cycle.

I'll be doing some testing on this circuit and code in the next month or so, just in time for RavAGE layout, so stay tuned.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
ruzki
QFP80 - Contributor
Posts: 86
Joined: Thu Jun 20, 2013 4:24 pm

Re: Always ON Power Design!

Post by ruzki »

As i know there are already good solutions for Power Supply.

I got a LM2984T on my OEM ECU pcb, i think it is very exotic but there should be similar solutions

Picture is stolen somewhere from the internet :lol:
0_c149a_49b724df_XL.jpg
DanMoto
DIP8 - Involved
Posts: 21
Joined: Fri Aug 16, 2013 6:59 am

Re: Always ON Power Design!

Post by DanMoto »

Fred wrote:What I intended to convey was that the stuff INSIDE the ECU should be controlled by key and not by CPU. In the diagram there are 8 relays, in two banks. The two banks are: 1) is key switched and controls various power feeds to the ECU and accessories such as wideband etc 2) is ECU switched and controls fuel pumps and power to coils and injectors. Somewhere on the forum is a list of what all the fuses and items are and are for, hence the letter/number labeling scheme. I'm not trying to say that various external accessories can't/shouldn't be controlled by CPU. As noted there are valid cases for external CPU controlled power, such as cooling fans, pumps, etc that you want to keep working after shut down.

Fred.
You can also allow CPU to override for those 'key' controlled power like fan, pumps, etc. Just OR them together and have both.
Post Reply