How to remember the number of power switch, Note:the power is main power,if the power off time is too long,MCU was stop working. sod ,off time less then 400ms,and MCU have a big cap to save power. question: if on/off power switch 1 times MCU output 500Hz on/off power switch 2 times MCU output 1000Hz .................................... anyone have a method? thx you .
I have read your post many times and still can not make head or tail of it. do you mean that you want to record how many times the power has been off long enough for the capacitot to discharge.
anyhow to help you the followibng will be needed a) which micro (ALL that letters and numbers) b) do you have (or can you) have a serial EEPROM attached
Erik
PS when "MCU have a big cap to save power" it is essential that you have a supervisor chip on the reset.
I have read your post many times ...
That sounds like a guy/gal having too much time on its hand.
"That sounds like a guy/gal having too much time on its hand."
And your post doesn't indicate that you have too much time on your hand???