您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 酒店餐饮 > SP706看门狗芯片SP706应用电路图
Tel(020)3873092338730976Fax38730925(WatchDog)......................................................................................11.1...............................................................................................................11.2WatchDog......................................................................................................21.3...................................................................................................31.4WatchDog..........................................................................................................31.5WatchDog..............................................................................................................7iTel(020)3873092338730976Fax38730925(WatchDog)1.1WatchDogvoidWatchdogEnable(unsignedlongulBase)3tBooleanWatchdogRunning(unsignedlongulBase)4voidWatchdogResetEnable(unsignedlongulBase)4voidWatchdogResetDisable(unsignedlongulBase)4voidWatchdogStallEnable(unsignedlongulBase)4voidWatchdogStallDisable(unsignedlongulBase)4voidWatchdogReloadSet(unsignedlongulBase,unsignedlongulLoadVal)5unsignedlongWatchdogReloadGet(unsignedlongulBase)5unsignedlongWatchdogValueGet(unsignedlongulBase)5voidWatchdogLock(unsignedlongulBase)5voidWatchdogUnlock(unsignedlongulBase)5tBooleanWatchdogLockState(unsignedlongulBase)6voidWatchdogIntEnable(unsignedlongulBase)6unsignedlongWatchdogIntStatus(unsignedlongulBase,tBooleanbMasked)6voidWatchdogIntClear(unsignedlongulBase)6voidWatchdogIntRegister(unsignedlongulBase,void(*pfnHandler)(void))7voidWatchdogIntUnregister(unsignedlongulBase)71.1MCUMCUWatchDogMCUMCUSP706ExarSipexMCUz4SP706PSP706RSP706SSP706TzPR/S/TzP/R2.63VS2.93VT3.08Vz200msz1.6zTTL/CMOS/MR1.1SP706U1SP706SPFIGNDVCCU2MCU1Tel(020)3873092338730976Fax38730925(1)for(;;)1.6s1.2WatchDogStellarisARMStellarisz32zzz2Tel(020)3873092338730976Fax38730925()WatchdogIntEnable()WatchdogDisable()1.3WatchdogRunning()1.41.3WatchdogEnable()3Tel(020)3873092338730976Fax38730925(unsignedlongulBase)ulBaseWATCHDOG_BASE1.4WatchdogRunning()tBooleanWatchdogRunning(unsignedlongulBase)ulBaseWATCHDOG_BASEtruefalseWatchdogResetEnable()WatchdogResetDisable()1.51.61.5WatchdogResetEnable()voidWatchdogResetEnable(unsignedlongulBase)ulBaseWATCHDOG_BASE1.6WatchdogResetDisable()voidWatchdogResetDisable(unsignedlongulBase)ulBaseWATCHDOG_BASEWatchdogStallEnable()WatchdogStallDisable()1.71.81.7WatchdogStallEnable()voidWatchdogStallEnable(unsignedlongulBase)ulBaseWATCHDOG_BASE1.8WatchdogStallDisable()voidWatchdogStallDisable(unsignedlongulBase)4Tel(020)3873092338730976Fax38730925()WatchdogReloadGet()1.91.10WatchdogValueGet()1.111.9WatchdogReloadSet()voidWatchdogReloadSet(unsignedlongulBase,unsignedlongulLoadVal)ulBaseWATCHDOG_BASEulLoadVal321.10WatchdogReloadGet()unsignedlongWatchdogReloadGet(unsignedlongulBase)ulBaseWATCHDOG_BASE321.11WatchdogValueGet()unsignedlongWatchdogValueGet(unsignedlongulBase)ulBaseWATCHDOG_BASE32WatchdogLock()WatchdogUnlock()1.121.13WatchdogLockState()1.141.12WatchdogLock()voidWatchdogLock(unsignedlongulBase)ulBaseWATCHDOG_BASE1.13WatchdogUnlock()5Tel(020)3873092338730976Fax38730925(unsignedlongulBase)ulBaseWATCHDOG_BASE1.14WatchdogLockState()tBooleanWatchdogLockState(unsignedlongulBase)ulBaseWATCHDOG_BASEtruefalse3WatchdogIntEnable()WatchdogIntDisable()1.15WatchdogIntStatus()WatchdogIntClear()1.161.17WatchdogIntRegister()WatchdogIntUnregister()1.181.191.15WatchdogIntEnable()voidWatchdogIntEnable(unsignedlongulBase)ulBaseWATCHDOG_BASE1.16WatchdogIntStatus()unsignedlongWatchdogIntStatus(unsignedlongulBase,tBooleanbMasked)ulBaseWATCHDOG_BASEbMaskedfalsetrue1.17WatchdogIntClear()voidWatchdogIntClear(unsignedlongulBase)ulBaseWATCHDOG_BASE6Tel(020)3873092338730976Fax38730925()voidWatchdogIntRegister(unsignedlongulBase,void(*pfnHandler)(void))ulBaseWATCHDOG_BASEpfnHandler1.19WatchdogIntUnregister()voidWatchdogIntUnregister(unsignedlongulBase)ulBaseWATCHDOG_BASE1.5WatchDog11.1wdogInit()6MHz350mswdogFeed()LEDLED500ms2350ms1.1WatchDogmain.c#includesystemInit.h#includewatchdog.h//LED#defineLED_PERIPHSYSCTL_PERIPH_GPIOG#defineLED_PORTGPIO_PORTG_BASE#defineLED_PINGPIO_PIN_2//LEDvoidledInit(void){SysCtlPeriEnable(LED_PERIPH);//LEDGPIOGPIOPinTypeOut(LED_PORT,LED_PIN);//LEDGPIOPinWrite(LED_PORT,LED_PIN,0xFF);//LED}//voidwdogInit(void)7Tel(020)3873092338730976Fax38730925{unsignedlongulValue=350*(TheSysClock/1000);//350msSysCtlPeriEnable(SYSCTL_PERIPH_WDOG);//WatchdogResetEnable(WATCHDOG_BASE);//WatchdogStallEnable(WATCHDOG_BASE);//W
本文标题:SP706看门狗芯片SP706应用电路图
链接地址:https://www.777doc.com/doc-5731040 .html