AX10445 Module Series User
’
s Manual
Application
31
return;
}
if (int_id >= 4)
/* data ready interrupt */
{
inbuf1[front1] =
inportb(CH1_PA);
/* store into buffer */
+;
if (front1 >= BUFSIZE) front1 = 0;
}
}
end_of_ch1:
/* pass control to old interrupt service routine if needed */
(*oldch1)();
}
/* interrupt service routine for channel 2 */
void interrupt far CH2_ISR()
{
register int int_id;
enable();
while (1)
{
int_id = inportb(IIR);
if ((int_id & 1) == 1)
/* no interrupt pending */
{
outportb(0x20,0x20);
/* send EOI */
return;
}
if (int_id >= 4)
/* data ready interrupt */
{
inbuf2[front2] = inportb(CH2_PA);
/* store into buffer */
+;
if (front2 >= BUFSIZE) front2 = 0;
}
}
end_of_ch2:
/* pass control to old interrupt service routine if needed */
(* oldch2)();
}
Содержание AX10445 Series
Страница 1: ...AX10445 Series Isolated Dual Channel RS422 485 Interface Module User s Manual...
Страница 10: ...AX10445 Module Series User s Manual 4 This page does not contain any information...
Страница 20: ...AX10445 Module Series User s Manual Setting up the AX10445 14 This page does not contain any information...
Страница 41: ...AX10445 Module Series User s Manual Application 33 return 0 void Reset_Buf rear1 front1 rear2 front2 0...
Страница 46: ...AX10445 Module Series User s Manual 36 This page does not contain any information...
Страница 48: ...AX10445 Module Series User s Manual 38 This page does not contain any information...
Страница 50: ...AX10445 Module Series User s Manual 40 This page does not contain any information...
Страница 52: ...AX10445 Module Series User s Manual 42 This page does not contain any information...
Страница 54: ...AX10445 Module Series User s Manual 44 This page does not contain any information...
Страница 58: ...AX10445 Module Series User s Manual 48 This page does not contain any information...