Technical description Chapter 9
PA 3110
59
b) Example in C for DOS
void main (void)
{
unsigned char b_BoardHandle;
if (Initialisation (&b_BoardHandle) == 0)
{
if (i_PA3110_SetBoardIntRoutineDOS (b_BoardHandle, v_InterruptRoutine) == 0)
{
ui_TimerIntCpt = 0;
if (i_PA3110_InitTimerWatchdog
(b_BoardHandle, PA3110_TIMER,
1000, PA3110_ENABLE) == 0)
{
if (i_PA3110_StartTimerWatchdog (b_BoardHandle) == 0)
{
while (ui_TimerIntCpt == 0);
printf (“Receive timer interrupt“);
i_PA3110_StopTimerWatchdog (b_BoardHandle);
}
else
printf (“Start timer error“);
}
else
printf (“Init timer error“);
i_PA3110_ResetBoardIntRoutine (b_BoardHandle);
}
else
printf (“Interrupt routine initialisation error“);
i_PA3110_CloseBoardHandle (b_BoardHandle);
}
else
printf (“Initialisation error“);
}
Содержание ADDIALOG PA 3110
Страница 12: ...PA 3110 Technical descriptioin Chapter 3 4 3 HANDLING THE BOARD Fig 3 1 Wrong handling Fig 3 2 Correct handling...
Страница 18: ...PA 3110 Technical description Chapter 5 10 5 SETTINGS 5 1 Component scheme Fig 5 1 Component scheme...
Страница 33: ...Technical description Chapter 7 PA 3110 25 Fig 7 3 37 pin SUB D male connector X20 differential mode...
Страница 35: ......