在SOPC Builder中,altera提供的定时器IP有看门狗功能
从这里调用
从这里调用
要启动 IOWR_ALTERA_AVALON_TIMER_CONTROL (TIMER_WATCHDOG_BASE,ALTERA_AVALON_TIMER_CONTROL_START_MSK);
写register IOWR_ALTERA_AVALON_TIMER_PERIODL (TIMER_WATCHDOG_BASE, 0xFFFF); IOWR_ALTERA_AVALON_TIMER_PERIODH (TIMER_WATCHDOG_BASE, 0xFFFF);
|