Chapter 9
9.5.3
Watchdog management
Example in C
#include "pa1508.h"
void main (VOID)
{
UINT
ui_Address = 0x390; //Base address of the board, set to 390Hex
BYTE
b_BoardHandle = 0;
BYTE
b_WatchdogStatus = 0;
/**********************************************************/
/* The function SetBoardInformation checks the parameters */
/* of the board and returns the handle of the board
/**********************************************************/
i_PA1508_SetBoardInformation
i_PA1508_SetBoardInformation
(...)
i_PA1508_EnableOutputsWatchdog
(...)
LOOP bis
WATCHDOG-STATUS = 1
i_PA1508_ReadOutputsWatchdogStatus
( WATCHDOG-STATUS )
LOOP
i_PA1508_DisableOutputsWatchdog
(...)
i_PA1508_CloseBoardHandle (...)
//Handle of the board
//Variable for Watchdog Status
(ui_Address, &b_BoardHandle);
PA 1508
*/
47
Need help?
Do you have a question about the PA 1508 and is the answer not in the manual?
Questions and answers