摘要
基于uC/OS-Ⅱ操作系统的任务调用、管理方法及多任务之间的通讯机制,结合LPC2132的内置看门狗,设计了一种能够实现多任务管理的软件看门狗,它能有效地监视各应用任务和硬件系统,确保系统长时间稳定运行.当一个任务出错时,为了不影响其他任务正常运行,看门狗重启该任务,直至在多次重启无效时重启系统;当系统硬件和主程序出现问题时,自动重启系统.
Combined with the hardware watchdog of LPC2132 chip, the software watchdog that can monitor all tasks of microprocessor(MCU) is designed based on the rules of task operation, management practices and communication mechanisms of μC/OS-Ⅱ operating system. The watchdog can effectively monitor the tasks and hardware system to ensure that the MCU can operate stably for a long time. When a task goes wrong, the software watchdog can restart the task in order not to affect the normal operation of other tasks. If the task is failed to restart repeatedly, the software watchdog will reboot MCU. When the hardware system or the main program goes wrong, the hardware watchdog of LPC2132 chip can reboot the system automatically.
出处
《衡水学院学报》
2009年第4期31-33,共3页
Journal of Hengshui University
基金
河南省教育厅自然科学研究计划项目(2008B510014)
郑州大学创新实验资助项目(zzdxcxsy2007029)