background image

AC37 High-Speed Communication Adapter Card

REGISTER DEFINITION

2-6

LINE CONTROL REGISTER:

OFFSET 3 - READ/WRITE

This register is used to select the format of serial communications data. The bits in the Line Control Register are
defined as such:

Bits 0 and 3:

Word Size Select
These two bits specify the number of bits in each serial character sent or received. The
AC37 does not support all of the various word sizes that the 16,550 UART does, but the
most commonly used data formats are supported and are selected using the settings
shown below:

Bit 1:

Not Used

Bit 2:

Not Used

Bit 4:

Address-/Data Select
This bit controls the state of the 9th data bit when the 9 bit mode is selected. When
communicating to a Remote I/O brick using binary protocol, this bit determines if the
next byte written to the transmit FIFO will be interpreted as an address or data byte. If
bit 4 is set to a logic 0, the 9th bit of data written to the transmit FIFO will be set to a
logic 1 when transmitted, and will 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 interpreted by the Remote I/O as data bytes.

Bit 5:

Not Used

Bit 6:

IRQ Output Control
This bit controls the state of the Remote Bus IRQ line. When bit 6 is set to a logic 1, the
IRQ line of the Remote Bus is activated. When bit 6 is set to a logic 0, the IRQ line will
be put into receive mode.

Bit 7:

DLAB Control
This bit is used to control access to the Baud Rate Select Register. If this bit is set to a
logic 0, the Receive buffer, Transmit buffer, and Interrupt Enable register may be
accessed. If this bit is set to a logic 1, only the Baud Rate Select register may be
accessed at offset 0.

Bit 3

Bit 0

Format

1

1

9 Data Bits, 1 Stop Bit *

0

1

8 Data Bits, 1 Stop Bit **

1

0

7 Data Bits, 1 Parity Bit, 1 Stop B

(Parity will always be even)

0

0

Reserved

* 9 Bit mode is used to communicate to Remote I/O using

binary protocol.

** 8 Bit mode is used to communicate to Remote I/O

using ASCII protocol.

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...

Отзывы: