What Joe said and I will add run the PIC at maybe 3 volts.
What Joe said and I will add run the PIC at maybe 3 volts.
Dave
Always wear safety glasses while programming.
Ah, that makes a lot more sense, yes! Thank you.
I'm in love with the 18F4550 (or 2550) because of the USB, so I'm stuck with 5v. But I can use a TI 78ST105 switching regulator instead of the LM7805 which will bring my effeciency from 12v to v5 to > 85%.
I've used the 4550 for a couple other projects so I'm familair with it. As far as power consumption I plan on using a USB sense from the 5V USB power to turn off the USB when not connected to save power, thus not affecting my ability to write to the EEPROM on shutdown. The USB will be used mainly for setup and to retrieve data, but will be disconnected 99.99% of the time.
New Schematic:
![]()
I am running the same chip at 48Mhz with a 4 Mhz osc at 3.3 volts.
The only thing about USB that is 5 volts is the positive power line. That has nothing to do with the signal. As far as I know even a USB flash drive runs on 3 something. Part of the stuff in the stick is a 5 to 3.3 regulator.
Dave
Always wear safety glasses while programming.
At the second schematic, I would change the cap to 2200uf, and also I would add 100uf parallel to the 50K resistor on the interrupt pin.
I would also add a BOR level or an endless loop, like a STOP command, immediately after the writing to the eeprom is complete.
When the power is lost, 2200uf will go down far after 100uf.
Once 100uf is down, you read zero at the interrupt pin and act right away to save to eeprom, and stop the PIC from doing anything else.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi,
Read section 24.0.
There is an on-board High Low Voltage Detection module present on the chip you are talking about.
You can use an external analogue input or the dedicated HLVD pin. Causes an interrupt. Store your values to the eeprom in the int itself. A high priority int would not int itself.
Take care not to get trapped by brownouts that affect your circuit but not the machine.
Shut off outputs turn off peripherals within 1uS and have ample time
Put an LED and see that the 2200 storage cap can give you over 2 seconds. You are asking for 20mS....
I used it as last memory for an industrial depth counter. Otherwise the eeprom could have weared out in a week. Not on 4550 though another PIC18.
PBP does not support oscillator switching, if you can handle it things become more sweeter... in terms of SLEEP.
Your PIC gets more ..... you get less, implementing it.![]()
Last edited by sougata; - 11th August 2009 at 08:25. Reason: Typo as usual...
Regards
Sougata
Bookmarks