Technics MT5634SMI-34, MT5634SMI-92 manual LSR Line Status, MSR Modem Status

Page 21

Chapter 4 – SocketModem Parallel Interface – A Programmer’s Description

LSR Line Status

Bit 7: Error in RX FIFO. This bit is always set to 1 if at least one data byte in the RX FIFO has an error. This will clear when there are no more errors in the RX FIFO.

Bit 6: Transmitter empty. This bit is the same as LSR bit 5 (THRE) in MMM

Bit 5: Transmitter holding register empty. This bit is set to 1 when either the transmitter holding register has been read (emptied) by the micro-controller (16450 mode) or the TX FIFO is empty (16550 mode). This bit is set to 0 when either the THR or the TX FIFO becomes not empty in 16450 mode. In 16550 mode, it is set to 0 only after the trigger level has been met since the last occurrence of TX FIFO empty. If the transmitter timer is enabled, a shadow bit exists which delays the timer setting this bit to 1. When reading this bit, the micro-controller will not see the delay. Both shadow and register bits are cleared when the host writes to the THR or TX FIFO in 16450 mode. The trigger level must be reached to clear the bit in 16550 (FIFO) mode.

Bits 24:Used for parity error, framing error, and break detect. These bits are written, indirectly, by the micro-controller as follows: The bits are first written to the shadow bit locations when the micro- controller write accesses the LSR. When the next character is written to the receive buffer (RBR) or the RX FIFO, the data in the shadow bits is then copied to the RBR (16450 mode) or RX FIFO (16550 mode). In FIFO mode, bits become available to the host when the data byte associated with the bits is next to be read. In FIFO mode, with successive reads of the receiver, the status bits will be set if an error occurs on any byte. Once the micro-controller writes to the RBR or RX FIFO, the shadow bits are auto cleared. The register bits are updated with each host read.

Bit 1: Overrun error. This bit is set if the micro-controller makes a second write to RBR before the host reads data in the buffer (16450 mode) or with a full RX FIFO (16550 mode). No data will be transferred to the RX FIFO under these circumstances. This bit is reset when the host reads the LSR.

Bit 0: Data ready bit. This bit is set to 1 when received data is available, either in the RX FIFO (16550 mode) or the RBR (16450 mode). This bit is set immediately upon the micro-controller writing data to the RBR or FIFO if the receive timer is not enabled, but it is delayed by the timer interval if the receive timer is enabled. For micro-controller read access, a shadow bit exists so that the micro- controller does not see the delay that the host sees. Both bits are cleared to logic 0 immediately upon reading all data in either RBR or RX FIFO.

MSR Modem Status

Bits 4 through 7 of the MSR can also take on the MCR bits 0 through 3 value when in MCR loop mode (i.e. when MCR b4 = 1). The transfer of bits in loop back has a null modem twist (i.e. MCR b0 goes to MSR b5 and MCR b1goes to MSR b4).

Bit 7: Data carrier detect (DCD) bit.

Bit 6: Ring indicator (RI) bit.

Bit 5: Data set ready (DSR) bit.

Bit 4: Clear to send (CTS) bit.

Bit 3: Delta data carrier detect pin. This bit is set to a 1 whenever the data carrier detect bit changes state. It is reset when the host reads the modem status register.

Bit 2: Trailing edge ring indicator bit. This bit is set to 1 on the falling edge of the ring indicator bit. It is reset when the host reads the modem status register.

Bit 1: Delta data set ready bit. This bit is set to 1 whenever the data set ready changes state. It is reset when the host reads the modem status register.

Bit 0: Delta clear to send bit. This bit is a one whenever the clear to send bit changes state. It is reset when the host reads the modem status register.

SocketModem Global MT5634SMI Developer’s Guide

21

Image 21
Contents MT5634SMI-34 MT5634SMI-92 Revisions Table of Contents Multi-Tech’s Flash Programming Protocol Appendix C Country Configuration and Result Codes Index Product Description Specifications IntroductionProduct Description MT5634SMI Features MatrixTIA/EIA TR29.2 Technical Specifications and FeaturesStandard MT5634SMI-IT-92 Industrial Temperature 3.3V Build OptionPhysical Dimensions All Models Mechanical SpecificationsPin Configurations Pin # Signal Name I/O Type DescriptionDigital Ground Ring Signal from Telco Tip Signal from TelcoActive High DCD status Active High RDX statusDgnd GND Pin # Signal Description NameINT VCC PWRElectrical Characteristics Electrical CharacteristicsTiming Requirements Handling PrecautionsTiming Requirements for Parallel Write Timing Requirements for Parallel ReadSocketModem Parallel Interface a Programmer’s Description SocketModem Parallel Interface Internal RegistersSocketModem Mimic MMM Operation Register Name Register Description Host Access Register Functional Descriptions Time Out Interrupts Internal Registers Special Register Set Note *2Bit Priority Interrupt Source Interrupt Reset Control IER Interrupt EnableRBR Receive Buffer RX Fifo THR Transmit Holding Register TX FifoFCR Fifo Control LCR Line ControlMCR Modem Control MSR Modem Status LSR Line StatusDLL Divisor Latch LSByte SCR ScratchDLM Divisor Latch MSByte Baud Rate Clock Divisor Decimal DLM Value HEX DLL Value HEXAT Command Summary AT Commands, S-Registers Result CodesSet Register Value Modulation HandshakeEnter Key AT CommandsDial string modifiers DS= y Dial Stored Telephone NumberReturn Online to Data Mode Sr? Sr= n Set Register ValueXON/XOFF Pacing Control Zy=x Store Dialing Command \An Select Maximum MNP Block Size\Bn Transmit Break \Tn Inactivity Timer \Nn Error Correction Mode Selection\Kn Break Control Data mode. The modem receives the break from the computer\Xn XON/XOFF Pass-Through DCn AT Command Control$Dn DTR Dialing $RPn Ring Priority vs. AT Command Priority$EBn Asynchronous Word Length $MBn Online BPS SpeedCallback Failed Attempts Reset #CBDn Callback Delay#CBIn Local Callback Inactivity Timer #CBNy=x Store Callback PasswordEscape AT Commands +MS= Modulation Selection CommandsSubparameters Modulation Possible rates bps1+PMH=n Modem on Hold Enable +PCW=n Call Waiting EnableMod value Valid maxrate values bps +PIG=n PCM Upstream Ignore+PMHT=n Modem on Hold Timer +PMHF V.92 Modem Hook Flash+PMHR=n Modem on Hold Initiate +VCID=n Caller ID Selection +PQC=n Quick Connect Control#S=x Store Setup Password #Sx Enter Setup PasswordRegisters Register Unit Range Default DescriptionS48=7 S48=128 S38Terse Verbose Description Result Codes111 Voice Commands Voice Commands Commands That Change for Voice Mode SupportVoice S-Register Summary Voice +V Commands Detail Voice +V Commands SummaryCommand Description +FCLASS= mode Enter Select Modem Operating ModeTouch Tone Signals Digit Low frequency High frequency AT+FCLASS=? Enter Display Service Class Capabilities+FCLASS=8 Dtmf Detect Detect and Control Dtmf +FMI?Enter Report Manufacturers ID +VNH=hookEnter Automatic Hang-Up Control+FMM?Enter Report Product ID +FMR?Enter Report Version LevelEnter Voice Receive State +VTS=string Produce Dtmf and Tone Generation in Voice ModeAT+VTS=? +VTS=? Report Frequency SupportStart Voice Transmission Process +VGR=gain Set the Gain for Received Voice Samples+VIT=timer Set DTE/DCE Inactivity Timer +VGT=level Set the Volume for Transmitted Voice Samples+VLS=label Select Analog Source/Destination Code Description+VRA=interval Set Ring Back Goes Away Timer +VRN=interval Set Ring Back Never Appeared Timer +VSD=sds,sdi Set Silence Detection Sensitivity+VSM=cml,vsr,scs,sel Select Voice Compression Method +VSM=? Report Voice Compression Method AT+VSM=?Identifier Description Enable Report Description +VDT=enable,report Control Tone Cadence ReportingLsltcq +VEM=? Report Event Reporting and Masking Capabilities +VEM=mask Event Reporting and Masking+VPP=enable Enable or Disable Voice Mode Packet Protocol Interface Configuration Commands+VBT=? Report Modem Flow Control Assert and Deassert Points AT+VBT=?Voice Mode Result Codes Flow Control+VPR=rate Select DTE/DCE Interface Rate Turn Off Autobaud Unsolicited Voice Mode Result Codes Valid Complex Event Report TagsTag Description Shielded Code Hex Event Report Description Voice Mode Shielded CodesAscii Command Response Sample SessionsSample Rate Selection and Suggested Compression Method AT+VTX AT+VLS=4DLE ETX AT+VLS=0AT+VRX AT+VLS=2DLE NUL AT+VNH=1DTE/DCE Interface Rates Related ManualsAdditional Information Fax Commands Remote Configuration Remote Configuration Country Code ConfigurationBasic Procedure SetupUsing the Global Wizard Utility Country Code ConfigurationUsing AT Commands Country AT Command Result Code Hexadecimal DecimalFirmware Upgrade Procedure Upgrade OverviewUpgrade Steps Install the Flash Wizard Download the Upgrade FileExtract the Firmware Upgrade .Hex Files Identify the Current Version of the FirmwareUpgrade the Modem’s Firmware Using the Flash WizardRestore Your Parameters Programming the Modem Multi-Tech Systems, Inc. Flash Programming ProtocolModem Comments Handshake SequenceOther Supported Boot Code Commands Other Programming ConcernsATI4 Data Record Char Pos Field Type Value Description Intel Hex FormatExample Extended Address Record in Intel Format End of File Record Char Pos Field Type Value DescriptionExample End of File in Intel Format Serial Test/Demo Board Components Appendix a Mechanical Details5V / 3.3V Jumper JP1 Serial Test/Demo Board Block DiagramParallel Test/Demo Board Components Address/COM Port/ IRQ Select Jumpers JP2 and JP3Operating Voltage Select Jumper JP4 Figure A-4. Parallel Test/Demo Board Block Diagram Parallel Test/Demo Board Block DiagramTelecom Approvals Safety and EMC ApprovalsHardware Considerations Regulatory Design ConsiderationsSafety 5V Tolerant Inputs for 3.3V Modules Industry Canada FCC Part 15 RegulationTelecom Labeling Requirements FCC Part 68 TelecomReregistration From FCC Part 68 Subpart D Conditions for RegistrationCanadian Limitations Notice Fax Branding StatementIndustry Canada CS-03 EMC, Safety, and R&TTE Directive ComplianceInternational Modem Restrictions Multiple ListingSouth African Notice New Zealand Telecom Warning NoticeCountry Country Config. hex ATI9 Response Appendix C Country Configuration Result CodesAppendix C Country Configuration and Result Codes Appendix C Country Configuration and Result Codes Appendix C Country Configuration and Result Codes Page Index Index Index Index