background image

 

AX10445 Series 

Isolated Dual Channel RS422/485 

Interface Module  

User’s Manual 

Summary of Contents for AX10445 Series

Page 1: ...AX10445 Series Isolated Dual Channel RS422 485 Interface Module User s Manual...

Page 2: ...AXIOMTEK makes no commitment to update or to keep current the information contained in this manual AXIOMTEK reserves the right to make improvements to this document and or product at any time and with...

Page 3: ...ap available from most electronic component stores when handling boards and components Unpacking After unpacking the CPU card check and see if the following items are included and in good condition If...

Page 4: ...ledgments AXIOMTEK is a trademark of AXIOMTEK Co Ltd IBM is a registered trademark of International Business Machines Corporation MS DOS Microsoft C and QuickBasic are trademarks of Microsoft Corporat...

Page 5: ...3 1 JP9 IRQ Level Selection 7 2 3 2 JP5 JP8 RS422 485 mode selection 8 2 3 3 JP1 JP2 JP3 JP4 Bypass protection resistors 8 2 3 4 JP6 JP7 Enable Disable 9 2 4 Pin Assignments 10 2 5 Signal Wirings 12 C...

Page 6: ...scal 24 4 4 Demo Program for TC for User to Communicate with Remote Device 27 Appendix A AX10445A Location Diagram Appendix B AX10445B Location Diagram Appendix C Block Diagram Appendix D PC I O Addre...

Page 7: ...ier module The AX10445 Series permits higher data rates and longer cable lengths of asynchronous communications than RS 232 do Complete with this AX10445 your PC can communicate with other computers o...

Page 8: ...to multiple receivers while RS 485 s is several drivers to multiple receivers multi drop communication You may assign your board to either RS 422 or RS 485 type of transmission via JP5 Please refer t...

Page 9: ...ransmitter n Device SN75172 or equivalent n High level voltage 3 7V typical at 33mA source n Low level voltage 1 1V typical at 33mA source n High level current 60mA source max n Low level current 60mA...

Page 10: ...AX10445 Module Series User s Manual 4 This page does not contain any information...

Page 11: ...RS 485 Make sure that you are using the correct cable connection as it different for RS 422 and RS 485 See Section 2 5 Signal Wirings 2 1 Installing the AX10445 Now you may begin with the installatio...

Page 12: ...am in Appendix A and Appendix B The valid I O port base addresses range from hex 200 to hex 3F8 Within this range you may specify your base addresses However it is not allowed to have two or more devi...

Page 13: ...the jumper s cap and place it on the appropriate pair of pins to activate enable or put it over the pin to deactivate disable The location diagram in Appendix A and Appendix B will assist you in loca...

Page 14: ...or 1 2 3 485 422 RS485 Mode Figure 2 RS422 485 Mode Selection When the jumper is at 485 position this transmit driver is controlled by RTS signal When using RS485 mode the software must provide this R...

Page 15: ...ystem using RS 485 transmission network In such cases it is necessary to take off these jumper s caps 2 3 4 JP6 JP7 Enable Disable The AX10445 Series supports enable disable module operation When JP7...

Page 16: ...re described in this section 6 7 8 9 1 2 3 4 5 RTS RTS CTS CTS TX TX RX RX GND 9 pin D type TX GND RX RX TX 1 9 7 5 3 2 10 8 6 4 RTS GND CTS CTS RTS 10 pin pin header Pin on Connector Abbreviation Sig...

Page 17: ...eive Data Data are received from other DTE via this line 3 Ground This line establishes a common ground reference for all signal lines 4 Request to Send When active this line conditions the receptor D...

Page 18: ...e signal wirings are different The RS 422 interface is based on one to one principles while the RS 485 interface is based on wire sharing For the RS 422 interface the cable must follow the connection...

Page 19: ...X 3 RX 5 GND DTE 32 For the RS 485 four wire mode interface the connection description is as follows twisted wire drawings omitted 1 TX 2 TX 3 RX 4 RX 5 GND MASTER 422 485 485 TYPE S L A V E 1 1 T X 2...

Page 20: ...AX10445 Module Series User s Manual Setting up the AX10445 14 This page does not contain any information...

Page 21: ...the transmitter and the receiver In asynchronous communication data usually referred to as character are transmitted independently Each byte of data transmitted by the serial port uses the following...

Page 22: ...n please refer to the data book There are seven physical registers in the UART which plays an important role in the AX10445 Series as illustrated in Figure 4 A brief information of each register will...

Page 23: ...nterrupt enable registers respectively refer to the following table Baud Rate bits sec Divisor Baud Rate bits sec Divisor 50 2304 2400 48 75 1536 3600 32 110 1047 4800 24 150 768 7200 16 300 384 9600...

Page 24: ...ntification Register 7 Wordlength 10 7 11 8 0 1 2 3 4 5 6 Base Address 3 Devisor Latch Access Bit BREAK Number of Stop Bits 0 1 1 2 Parity 000 None 001 Odd 011 Even Line Control Register 7 DTR 0 1 2 3...

Page 25: ...ed The RS 422 485 transmits data through differential signal lines These differential signal lines have better noise immunity The characteristics of these standards are given in Table 1 Characteristic...

Page 26: ...ntial to note that the transmission speed is inversely proportional to it s distance See Table 2 Transmission Distance Transmission Speed RS 232 15m 20K bits sec RS 422A 12m 120m 1200m 10M bits sec 1M...

Page 27: ...ceiver Circuit 3 3 1 Driver Detail JP1 JP2 CH 1 JP3 JP4 CH 2 TX RTS TX or RTS TX or RTS To Connector SN75172 or 26C31 JP4 JP3 3 3 2 Receiver Detail From Connector RX or CTS RX or CTS R1 R2 R3 R4 VCC R...

Page 28: ...nd and shielding connector case ground together for AX10445A 3 5 Termination Resistor As the AX10445 use differential signal lines in communication a terminating resistor for impedance matching should...

Page 29: ...ese parameters must be the same for ports transferring data to each other If you are using the standard COM1 and COM2 as your serial ports then the parameters can be defined directly via the function...

Page 30: ...on why a count of the number of bytes to be transferred must be sent to the receiver prior to sending the file 4 2 Demo Program for QB4 5 TITLE Demo program for QB4 5 at RS485 mode two wire operation...

Page 31: ...Module Series User s Manual Application 23 ibuf INPUT LOC 2 2 PRINT ibuf END IF sleep for a while if need SLEEP 1 LOOP WHILE INKEY if key pressed then exit close communication ports CLOSE 1 CLOSE 2 C...

Page 32: ...5 boolean mode flag int_id word interrupt identification intbuf pointer bios int 14 call procedure int14_0 port para word inline 58 pop ax 5A pop dx B4 00 mov ah 0 CD 14 int 14 interrupt service routi...

Page 33: ...tor port pa 1 01 set receive interrupt port pa 4 08 enable interrupt port 21 port 21 and mask unmask 8259 interrupt inline FB sti end write data to UART procedure write_com data string wlen wored var...

Page 34: ...n reset receiver buffer index ii 1 issue write data routine write_com This is a product of AXIOMTEK Made In Taiwan 43 wait for completion of remote response show on screen for i 1 to ii 1 do write chr...

Page 35: ...ne CH2_PA 0x2f8 define CH1_MASK 0x0ef EF F7 EF F7 define CH2_MASK 0x0f7 define CH1_INTNO 0xc 0c 0b 0c 0b define CH2_INTNO 0xb define 8250 registers offset define DATA 0 define IER 1 define IIR 2 defin...

Page 36: ...IT 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...

Page 37: ...te1_Com int ch unsigned char data unsigned pa select port if ch 1 pa CH1_PA else if ch 2 pa CH2_PA else return is 485 turn on send driver if Is_RS485 outportb pa MCR 0x0a check Transmit Holding Regist...

Page 38: ...write data while inportb pa LSR 0x40 0 wait a moment if needed write data to Data Register outportb pa data i i is 485 turn off send driver while inportb pa LSR 0x40 0 if Is_RS485 outportb pa MCR 0x0...

Page 39: ...vice 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 CH2_PA IIR if int_id 1 1 no interrupt pending outport...

Page 40: ...ile si1 BUFSIZE if rear1 front1 showbuf1 si1 inbuf1 rear1 si1 rear1 else no data in buffer now showbuf1 si1 0 return si1 return 0 retrieve data from channel 2 receive buffer int Get2Str if rear2 front...

Page 41: ...AX10445 Module Series User s Manual Application 33 return 0 void Reset_Buf rear1 front1 rear2 front2 0...

Page 42: ...end equiry request data Write_Com 1 Enquiry from 1 14 wait for acknowledge delay 100 if Get2Str 14 puts showbuf2 else puts Timeout channel 2 n goto ERROR_END1 send header command data Write_Com 1 Head...

Page 43: ...s showbuf1 else puts Timeout channel 1 n goto ERROR_END2 send header command data Write_Com 2 Header Command 14 wait for acknowledge delay 100 if Get1Str 14 puts showbuf1 else puts Timeout channel 1 n...

Page 44: ...R_END2 puts Next loop n restore all changed system configuration setvect CH2_INTNO oldch2 setvect CH1_INTNO oldch1 outportb 0x21 inportb 0x21 CH1_MASK outportb 0x21 inportb 0x21 CH2_MASK outportb CH1_...

Page 45: ...AX10445A Location Diagram J6 J5 JP9 SW2 SW1 U14 82C50 U9 82C50 JP4 JP3 JP5 JP8 JP7 JP6 U2 75172 U5 75173 U4 75172 U3 75173 J4 JP2 JP1 J3 RT5 RT6 RT7 RT8 RT1 RT2 RT3 RT4 CN1 CN2 ARS 0505 ARS 0505 TX1 R...

Page 46: ...AX10445 Module Series User s Manual 36 This page does not contain any information...

Page 47: ...d i x B AX10445B Location Diagram J6 J5 JP9 SW2 SW1 U14 82C50 U9 82C50 JP4 JP3 JP5 JP8 JP7 JP6 U2 75172 U5 75173 U4 75172 U3 75173 J4 JP2 JP1 J3 RT5 RT6 RT7 RT8 RT1 RT2 RT3 RT4 CN1 CN2 TX1 RX1 TX2 RX...

Page 48: ...AX10445 Module Series User s Manual 38 This page does not contain any information...

Page 49: ...S SERIAL COMMUNICATION CONTROLLER I N T E R N A L D A T A B U S IRQ JUMPER SELECT OSC 1 8432 MHz ASYNCHRONOUS SERIAL COMMUNICATION CONTROLLER IRQ JUMPER SELECT O P T O C O U P L E R S RECEIVER DRIVER...

Page 50: ...AX10445 Module Series User s Manual 40 This page does not contain any information...

Page 51: ...ss Map Address Devices 200 207 Game Port 278 27F Parallel Port 2 300 31F Prototype Card 360 36F Reserved 378 3FF Parallel Port 1 380 38F SDLC 2 3A0 3AF SDLC 1 3B0 3BF MDA Video Card including LPT0 3C0...

Page 52: ...AX10445 Module Series User s Manual 42 This page does not contain any information...

Page 53: ...errupt rerouting from IRQ8 through IRQ15 3 Not used RS 232 C serial port 2 RS 232 C serial port 2 4 RS 232 C serial port RS 232 C serial port 1 RS 232 C serial port 1 5 Not used Parallel Port 2 Parall...

Page 54: ...AX10445 Module Series User s Manual 44 This page does not contain any information...

Page 55: ...e size of standard PC and PC AT motherboards and expansion cards This document supplies the mechanical and electrical specifications for a compact version of the PC AT bus optimized for the unique req...

Page 56: ...5 8 9 90 2 85 1 5 1 0 0 8 3 24 1 5 3 7 6 12 7 10 2 90 8 2 5 6 4 26 7 2 5 Typ 3 2 Hole Typ 4 PLCS 6 4 Pad Typ 4 PLCS 1 1 8 3 82 6 95 9 12 7 0 1 0 0 1 32 32 19C 19D J1 J2 Primary Side 1 6 10 7 5 0 Typ...

Page 57: ...AX10445 Module Series User s Manual PC 104 Mechanical Specifications 47 Standalone Module Stacks NOTE Most images contained in this appendix are courtesy of the PC 104 Consortium...

Page 58: ...AX10445 Module Series User s Manual 48 This page does not contain any information...

Reviews: