OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [docs/] [datasheet/] [soc_wdt.adoc] - Diff between revs 69 and 73

Show entire file | Details | Blame | View Log

Rev 69 Rev 73
Line 7... Line 7...
|=======================
|=======================
| Hardware source file(s): | neorv32_wdt.vhd |
| Hardware source file(s): | neorv32_wdt.vhd |
| Software driver file(s): | neorv32_wdt.c |
| Software driver file(s): | neorv32_wdt.c |
|                          | neorv32_wdt.h |
|                          | neorv32_wdt.h |
| Top entity port:         | none |
| Top entity port:         | none |
| Configuration generics:  | _IO_WDT_EN_ | implement GPIO port when _true_
| Configuration generics:  | _IO_WDT_EN_ | implement watchdog when _true_
| CPU interrupts:          | fast IRQ channel 0 | watchdog timer overflow (see <<_processor_interrupts>>)
| CPU interrupts:          | fast IRQ channel 0 | watchdog timer overflow (see <<_processor_interrupts>>)
|=======================
|=======================
 
 
 
 
**Theory of Operation**
**Theory of Operation**
Line 44... Line 44...
WDT_CTRL_MODE bit defines the action to be taken on an overflow: When cleared, the Watchdog will assert an
WDT_CTRL_MODE bit defines the action to be taken on an overflow: When cleared, the Watchdog will assert an
IRQ, when set the WDT will cause a system reset. The configured action can also be triggered manually at
IRQ, when set the WDT will cause a system reset. The configured action can also be triggered manually at
any time by setting the _WDT_CTRL_FORCE_ bit. The watchdog is reset by setting the _WDT_CTRL_RESET_ bit.
any time by setting the _WDT_CTRL_FORCE_ bit. The watchdog is reset by setting the _WDT_CTRL_RESET_ bit.
 
 
A watchdog interrupt can only occur if the watchdog is enabled and interrupt mode is enabled.
A watchdog interrupt can only occur if the watchdog is enabled and interrupt mode is enabled.
A triggered interrupt has to be cleared again by setting the according `mip` CSR bit.
A triggered interrupt has to be cleared again by writing zero to the according <<_mip>> CSR bit.
 
 
The cause of the last action of the watchdog can be determined via the _WDT_CTRL_RCAUSE_ flag. If this flag is
The cause of the last action of the watchdog can be determined via the _WDT_CTRL_RCAUSE_ flag. If this flag is
zero, the processor has been reset via the external reset signal. If this flag is set the last system reset was
zero, the processor has been reset via the external reset signal. If this flag is set the last system reset was
initiated by the watchdog.
initiated by the watchdog.
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.