AX10445 Module Series User
’
s Manual
Application
28
static char comm_para=0xe3;
/* 9600,N,8,1 */
static int Is_RS485=0;
/* prototpye delcarations */
void interrupt far CH1_ISR();
void interrupt far CH2_ISR();
/* routine : initial UART, 8259, PC */
void COM_INIT(intch)
{
unsigned pa;
unsigned mask;
unsigned intno;
if (ch= =1) {
pa = CH1_PA;
mask = CH1_MASK;
intno = CH1_INTNO;
}
else if (ch= =2) {
pa = CH2_PA;
mask = CH2_MASK;
intno = CH2_INTNO;
}
disable();
/* disable interrupt,RTS and DTR */
outportb(pa+MCR,0);
/* disable Interrupt Enable Register */
outportb(pa+IER,0);
/* see library function call */
bioscom(0,comm_para,ch-1);
/* clear intr flag */
inportb(pa+IIR);
inportb(pa);
/* redirect interrupt vector */
if (ch= =1)
{
oldch1 = getvect(intno);
setvect(intno,CH1_ISR);
Содержание 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...