background image

AC37 High-Speed Communication Adapter Card

4-1

MODES OF OPERATION

The AC37 has two operating modes. Mode 0 is selected by removing the OPT0 (OPTION 0) jumper. Mode 1 is
selected by installing the OPT0 jumper. Option jumper 1 is reserved for future use. The option jumpers are read
only after the AC37 has been powered up or upon reset.

Mode 0:

While in mode 0, the AC37 will operate very much like a standard serial COM port. It also will not receive what
it has transmitted. When data is received, it is put into the receive FIFO and the Receive Data Available bit is set
immediately. This bit remains set until all data has been read from the receive FIFO or the FIFO is reset. When
data is put into the transmit FIFO, it is read and transmitted as room becomes available in the output shift
register.

Mode 1:

Mode 1 is intended to facilitate the command-response transactions necessary to operate Remote I/O bricks.
This is done primarily by holding the Receive Data Available flag reset until the complete response string is put
into the receive FIFO. By doing so, the AC37 minimizes the time required for the host CPU to collect the data,
since only one interrupt is necessary to read the entire response. Both ASCII and binary protocols are supported
and the operation of the AC37 will be slightly different depending on which is being used.

ASCII Protocol:

The AC37 will send and receive data much the same way as it does in mode 0, except that after transmitting a
carriage return (the ASCII protocol end-of-message character), the AC37 will stop transmitting and wait for a
response from the Remote I/O brick or controller. As the response string is received, it is put into the receive
FIFO but the Receive Data Available bit is held clear until a carriage return is received. If a receive error occurs,
or two seconds expire with no data having been received, the Receive Data Available flag is allowed to operate
in it’s normal manner.

Binary Protocol:

The binary protocol uses 9 bit characters to transfer data to and from the Remote I/O bricks and controllers. The
9th bit is used to differentiate data bytes from address bytes. Address bytes are normally only sent at the
beginning of a command string.

In mode 1, when the AC37 reads an address byte from the transmit FIFO it will wait to transmit the address byte
until the second byte (count byte) is put into the transmit FIFO. This has the effect of holding off the Transmit
Driver Active flag (normally the Transmit Shift Register Empty flag), and allowing the software to change the
state of the 9th bit without waiting for the first byte to be completely shifted out. While this is not necessary
when using the AC37, it may be done to keep software compatible with other serial cards.

CHAPTER 4

Updated: 10-28-02

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Содержание AC37

Страница 1: ...xcess underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals De...

Страница 2: ...2590 3614 Phone 800 321 OPTO 6786 or 951 695 3000 Fax 800 832 OPTO 6786 or 951 695 2712 www opto22 com Product Support Services 800 TEK OPTO 835 6786 or 951 695 3080 Fax 951 695 3017 E mail support op...

Страница 3: ...r to Opto 22 form number 1042 for complete warranty information Opto 22 FactoryFloor Cyrano Optomux and Pamux are registered trademarks of Opto 22 Generation 4 ioControl ioDisplay ioManager ioProject...

Страница 4: ...R REGISTER OFFSET 0 READ ONLY 2 1 CARD IDENTIFICATION REGISTER OFFSET 7 READ ONLY 2 1 BAUD RATE SELECT REGISTER OFFSET 0 READ WRITE 2 2 INTERRUPT ENABLE REGISTER OFFSET 1 READ WRITE 2 3 INTERRUPT IDEN...

Страница 5: ...AC37 High Speed Communication Adapter Card TABLE OF CONTENTS iv Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 6: ...e OpenthefileTEST1 TXT Keynamesappearinsmallcapitalletters Example PressSHIFT Keypresscombinationsareindicatedbyplussignsbetweentwoormorekeynames Forexample SHIFT F1 istheresultofholdingdowntheSHIFT k...

Страница 7: ...AC37 High Speed Communication Adapter Card WELCOME vi Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 8: ...functions of the 16 550 are supported e g modem control all registers necessaryforRemoteBuscommunicationsareconfiguredinthesamemannerasaserialport SUMMARY OF FEATURES Seriallinkbaudratesto460 800 Remo...

Страница 9: ...ress lines of the AT match the jumper settings the card is selected The base address must be less than 3FF Hex and have a zero or eight as the last digit Care should be taken to select a base address...

Страница 10: ...icationRegistercanberoutedtooneinterruptrequestlinebyinstalling thejumperforthatline Onlyonejumpershouldbeinstalledinthisgroup andcareshouldbetakentoinsurethat nootherdeviceisusingtheselectedinterrupt...

Страница 11: ...ENDSofanRS 485transmissionline andthelinemust haveonlyTWOends Thebiasingresistorsareonlynecessaryatoneplaceonthelineandaretypicallyinstalledat thehost EXAMPLES IftheAC37iscommunicatingtoaMisticModel20...

Страница 12: ...Screw AC37 retainer bracket to case 4 Replace computer cover CABLE RS 485 serial lines require twisted pair cable Maximum cable length is 3 000 feet The recommended cable type is 2 twisted pair of 24...

Страница 13: ...OMport 16 550UART emulationmode0 Mode1isusedwhenacompletedataresponseisreceivedand readyinthecommunicationbuffer Remove jumper 0 to set the AC37 to mode 0 for connections to Mistic I O bricks If you a...

Страница 14: ...ER OFFSET 7 READ ONLY Thisregisterwillalwaysreadas37Hex whichmaybeusedbysoftwaretoidentifytheportasanAC37 Writingto thisaddresswillhavenoeffect Offset from Base Address DLAB State Register Function Ty...

Страница 15: ...toa1beforethisregistercanbeaccessed IftheBaud Rate Select Register is configured to something other than the selections shown below a default baud rate of 115 200willbeset Desired Baud Rate Baud Rate...

Страница 16: ...c 1 a transmit buffer empty interrupt is generated whenever the transmit FIFO is ready to accept data Refer to the description of the Transmit Buffer Empty flag bit 5 in the Line Status Register Bit 2...

Страница 17: ...Refer to the Line Status Register definition for a description of these errors A Line Status Interrupt is cleared by reading the Line Status Register AReceiveDataAvailableInterruptisgeneratedwhenevert...

Страница 18: ...pointers reset to 0 Data being shifted out of the transmitter is not affected This bit is self clearing and it is not necessary to write a logic 0 afterward Bit 3 Not Used Bit 4 CPU Reset To reset the...

Страница 19: ...ll be interpreted as an address byte by the Remote I O Conversely if bit 4 is set to a logic 1 the 9th bit of data written to the transmit FIFO will be set to a logic 0 when transmitted and interprete...

Страница 20: ...eld anolderfull lengthcardandanewerhalf sizecard Thenewer cardsupportstheuseofthisbittoenableinterrupts TheolderAC37doesnotsupporttheuseofthisbit however werecommendthatthebitstillbesettoensurecompati...

Страница 21: ...g data is lost The receive FIFO is 512 bytes deep The Overrun Error Indicator is reset to a logic 0 when the Line Status Register is read Bit 2 Not Used This bit is not used and will always read as a...

Страница 22: ...e is being driven to the active state by a device other than the AC37 Bit 4 functions identically to bit 0 Bit 4 is the CTS status bit in a 16 550 UART chip Bit 5 Address Data Receive Flag When the AC...

Страница 23: ...AC37 High Speed Communication Adapter Card 2 10 REGISTER DEFINITION Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 24: ...ectorsandroutines fortheserialcommunicationsandexternalinterrupthandling TheG4INTjumperwill directly route the external interrupt signal to the selected interrupt request line and it may only be enabl...

Страница 25: ...AC37 High Speed Communication Adapter Card EXTERNAL INTERRUPT LINE REMOTE I O IRQ 3 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 26: ...which is being used ASCII Protocol The AC37 will send and receive data much the same way as it does in mode 0 except that after transmitting a carriage return the ASCII protocol end of message charac...

Страница 27: ...eReceiveDataAvailableflaguntiltheentireresponseisreceived Ifareceiveerroroccurs or twosecondsexpirewithnodatahavingbeenreceived theReceiveDataAvailableflagisallowedtooperateinit s normalmanner Mode 2...

Страница 28: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Отзывы: