This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to remember the number of power switch

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 .

Parents
  • "You guys are not understanding the problem."

    And there is where you are wrong. I have already posted an answer, where the processor do count time - and do not make use of any EEPROM, F-RAM or similar. With a correctly selected processor, you can drive the processor for a long time on a tiny capacitor so the processor can make use of the internal timers and power on/off can be fed to a processor pin (either interrupt pin or a pin gating a timer) so the processor core can sleep while waiting for power on - or the timer overrruns, in which case the "off" was considered too long to be part of multi on/off sequence.

Reply
  • "You guys are not understanding the problem."

    And there is where you are wrong. I have already posted an answer, where the processor do count time - and do not make use of any EEPROM, F-RAM or similar. With a correctly selected processor, you can drive the processor for a long time on a tiny capacitor so the processor can make use of the internal timers and power on/off can be fed to a processor pin (either interrupt pin or a pin gating a timer) so the processor core can sleep while waiting for power on - or the timer overrruns, in which case the "off" was considered too long to be part of multi on/off sequence.

Children