Re: RTC on MPC860 after complete power failure



Andrew Schweitzer wrote:
If the RTC isn't predictable, does anyone know of any other register
that is, that can be used to detect actual loss of all power?

You could use a scratch register that is not cleared on reset, and
set it to a key value that you test at boot up. If it's any other
value, you assume that the system must have powered down.

I couldn't find any register guaranteed not to be changed on reset in
a quick glance through the 860 manual, but I've seen some software
that used the M_TW register for this purpose (SPR 799); but the
software that did this only needed it to survive a soft reset...

Alternately you could use a static RAM location; such as in the
parameter RAM somewhere. I suspect that might not be changed on
reset. SDRAM probably isn't safe for this since the values could
decay before the memory controller is initialized.

--
Darin Johnson

.



Relevant Pages

  • Re: Partial shift register extraction in ISE
    ... Any register with a reset term should not infer SRL, ... I'm building a design where I want ISE to extract the shift ... Partial shift register extraction, that is. ...
    (comp.arch.fpga)
  • Re: dual port ram
    ... register file needs 3 registers initialising at reset. ... use is to build the DPRAM in the ordinary way, and then to build a regular collection of flip-flops with one FF per RAM location. ... These FFs are reset to 0 at power-up, and are changed to 1 whenever the corresponding RAM location is written - an easy ...
    (comp.arch.fpga)
  • Re: Sending SPI-style serial data to DAC on register change
    ... >> You can't use a module inout as a register. ... >> is more than one logic source driving net load_word. ... How do I change reset_lw back to the value which tells the driving logic to NOT reset the load_word signal? ... How do I reset the reset_lw register to 1'b0 only after I have set the load_word register to 8'b0? ...
    (comp.lang.verilog)
  • [PATCH 1/1] IBM PPC EMAC driver:improved support for PHY, resending
    ... this was harder than fixing the driver). ... followed by a read/modify/write of the control register. ... what I found is that on at least one PHY model ... the read of the control register comes back with the soft reset bit set ...
    (Linux-Kernel)
  • Re: How can I tell programmingly that device is reset from ...
    ... "Bruce Eitman (eMVP)" wrote: ... > Depends on your CPU and kernel/bootloader. ... > The CPU usually has a status register which identifies the last reset cause. ...
    (microsoft.public.windowsce.embedded.vc)