MX909A COMMUNICATION SEMICONDUCTORS GMSK Modem Data Pump DATA BULLETIN PRELIMINARY INFORMATION • • • • GMSK Modulation RX or TX up to 19.2k bits/sec Full Data Packet Framing Mobitex¥ ¥ Compatible ANALOG TX MODEM DATA PUMP RF DISCRIMINATOR Flexible Operating Modes Host µC Interface Low Power 3.3V/5.0V Operation 24-Pin Small Form Package Option MX909A RADIO MODULATOR • • • • HOST µC DATA AND CONTROL BUS SYSTEM APPLICATION PROCESSING ANALOG RX The MX909A is a low power CMOS device containing all of the baseband signal processing and Medium Access Control (MAC) protocol functions required for a high performance GMSK Wireless Packet Data Modem. The MX909A interfaces with a host µC and radio modulation/demodulation circuits to deliver reliable two-way transfer of application data over a wireless link. The MX909A assembles application data received from the host µC, adds forward error correction (FEC), and error detection (CRC) codes, time-spreads this data by interleaving (burst-error protection) and scrambles (randomizes) the bit pattern. After automatically adding bit and frame sync codewords, the data packet is converted into analog GMSK signals for modulating into the radio transmitter. In the receive mode, the MX909A performs the reverse function using the analog signals from the receivers discriminator. After error correction and removal of the packet overhead, the recovered application data is supplied to the host µC. Any CRC detected residual uncorrected errors in the data will be flagged. Readout of the SNR value during receipt of a packet is also provided. The MX909A uses data block sizes and FEC/CRC algorithms compatible with the Mobitex¥ Wide Area Network over-air standard. The format used is suitable for other private applications where the high-speed transfer of data over narrow-band wireless links is required. The MX909A is programmable to operate at standard bit-rates from a wide choice of XTAL/CLOCK frequencies. The MX909A may be used with a 3.0V to 5.5V power supply and is available in the following packages: 24-pin SSOP (MX909ADS), 24-pin SOIC (MX909ADW), 24-pin PLCC (MX909ALH), and 24-pin PDIP (MX909AP). ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 2 of 37 MX909A PRELIMINARY INFORMATION CONTENTS Section Page 1 Block Diagram ............................................................................................................... 3 2 Signal List ...................................................................................................................... 4 3 External Components ................................................................................................... 5 4 General Description ...................................................................................................... 6 4.1 Description of Data Blocks .............................................................................................. 6 4.2 Modem - µC Interaction................................................................................................... 9 4.3 4.4 Data Formats .................................................................................................................. 9 The Programmer's View................................................................................................ 11 4.5 CRC, FEC, Interleaving and Scrambling Information..................................................... 22 5 Application................................................................................................................... 24 5.1 Transmit Frame Example.............................................................................................. 24 5.2 5.3 Receive Frame Example............................................................................................... 26 Clock Extraction and Level Measurement Systems....................................................... 28 5.4 AC Coupling.................................................................................................................. 30 5.5 Radio Performance ....................................................................................................... 31 6 Performance Specification ......................................................................................... 32 6.1 6.2 Electrical Performance .................................................................................................. 32 Packaging ..................................................................................................................... 36 MX•COM, Inc. Reserves the right to change specifications at any time and without notice. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 3 of 37 MX909A PRELIMINARY INFORMATION 1 Block Diagram DATA QUALITY REGISTER STATUS REGISTER IRQ µCONTROLLER INTERFACE 8 D0 D1 D2 D3 D4 D5 D6 D7 COMMAND REGISTER DATA BUS BUFFERS CONTROL REGISTER DATA BUFFER WR RD CRC GENERATOR/ CHECKER FEC GENERATOR/ CHECKER ADDRESS AND R/W DECODE CS A0 A1 FRAME SYNC DETECT INTERLEAVE/ DE-INTERLEAVE VDD VDD MODE REGISTER VBIAS Tx Bits VSS RXAMPOUT Rx Input Amp VBIAS RXIN Rx Bits SCRAMBLE/ DE-SCRAMBLE DOC1 Tx Rx LOW PASS FILTER Rx Rx LEVEL/CLOCK EXTRACTION Tx XTAL Tx CLOCK OSCILLATOR AND DIVIDERS DOC2 TXOUT Rx Tx Output Buffer VBIAS XTAL / CLOCK Figure 1: Block Diagram ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 4 of 37 MX909A PRELIMINARY INFORMATION 2 Signal List Pin No Signal Type Description 1 IRQ output This pin is a ‘wire-ORable' output for connection to the host µC's Interrupt Request input. When active, this output has a low impedance pull down to VSS. It has a high impedance when inactive. 2 D7 BUS 3 D6 BUS 4 D5 BUS Pins 2-9 (D7 - D0) are 8-bit, bi-directional, 3-state 5 D4 BUS µC interface data lines 6 D3 BUS 7 D2 BUS 8 D1 BUS 9 D0 BUS 10 RD input Read. An active low logic level input used to control the reading of data from the modem into the host µC. 11 WR input Write. An active low logic level input used to control the writing of data into the modem from the host µC. 12 VSS power Negative supply. (ground). 13 CS input Chip Select. An active low logic level input to the modem. It is used to enable a data read or write operation. 14 A0 input Logic level modem register select input. 15 A1 input Logic level modem register select input. 16 XTAL output 17 XTAL/CLOCK input Input to the on-chip oscillator, for an external CLOCK or XTAL circuit. 18 DOC 2 output Connects to the Rx level measurement circuitry. Should be capacitive coupled to VSS. 19 DOC 1 output Connects to the Rx level measurement circuitry. Should be capacitive coupled to VSS. 20 TXOUT output Tx output signal from the modem. 21 VBIAS output A bias line for the internal circuitry, held at VDD/2. This pin must be bypassed to VSS by a capacitor mounted close to the device pins. 22 RXIN input 23 RXAMPOUT output The output of the Rx input amplifier. 24 VDD power Positive supply. Voltage levels are dependent upon this supply. This pin should be bypassed to VSS by a capacitor mounted close to the device pins. ¤2001 MX-COM, Inc. Output of the on-chip oscillator. Input to the Rx input amplifier. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 5 of 37 MX909A PRELIMINARY INFORMATION 3 External Components µCONTROLLER INTERFACE VDD 1 2 3 4 IRQ D7 D6 D5 D4 D3 D2 D1 D0 RD WR 5 6 7 8 9 VSS CS A0 A1 24 23 22 21 20 19 18 17 16 15 14 MX909A 10 11 12 13 VDD C1 R2 RXAMPOUT RXIN VBIAS TXOUT GMSKIN R1 R4 DOC1 DOC2 XTAL/CLOCK XTAL A1 A0 CS C7 GMSKOUT C6 C2 C5 XTAL/CLOCK 17 X1 R3 16 C3 C4 XTAL Figure 2: Recommended External Components Component Notes R1 1 Value Tolerance ±20% R2 100kΩ ±10% R3 1MΩ ±20% R4 ±5% 2 C1 0.1 µF ±20% C2 0.1 µF ±20% C3 3 ±20% C4 3 ±20% C5 2 ±10% C6 4 ±20% C7 4 ±20% X1 3 Recommended External Component Notes: 1. See section 4.1.10. 2. See section 4.1.12. 3. See section 4.4.3. 4. C6 and C7 values should satisfy the following formula: C (Farads) = 120 x 10-6 / Data Rate (bits/second) Data Rate (kbits/sec) 4.0 4.8 8.0 9.6 16.0 19.2 C6 / C7 (uF) 0.03 0.022 0.015 0.012 0.0068 0.0068 ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 6 of 37 MX909A PRELIMINARY INFORMATION 4 General Description TM This product has been designed to be compliant with the appropriate sections of the “Mobitex Specification”. 4.1 4.1.1 Interface Description of Data Blocks Data Bus Buffers 8 bi-directional, 3-state logic level buffers between the modem’s internal registers and the host µC’s data bus lines. 4.1.2 Address and R/W Decode This block controls the transfer of data bytes between the µC and the modem’s internal registers, according to the state of the Write and Read Enable inputs ( WR and RD ), the Chip Select input CS ), and the Register Address inputs A0 and A1. The Data Bus Buffers, Address, and R/W Decode blocks provide a byte-wide parallel µC interface, which can be memory mapped, as shown in Figure 3. D0:7 D0:7 Data Bus A0:1 A0:1 Address Bus A2:7 µC Address Decode Circuit MODEM VDD IRQ CS IRQ pull up resistor IRQ WR RD WR RD Figure 3: Typical Modem µC Connections 4.1.3 Status and Data Quality Registers 8-bit registers which the µC can read to determine the status of the modem and the received data quality. 4.1.4 Command, Mode and Control Registers The values written by the µC to these 8-bit registers control the operation of the modem. 4.1.5 Data Buffer An 18-byte buffer used to hold receive or transmit data to or from the µC. 4.1.6 CRC Generator/Checker A circuit which generates (in transmit mode) or checks (in receive mode) the Cyclic Redundancy Checksum bits, which are included in transmitted Mobitex¥ data blocks so the receive modem can detect transmission errors. 4.1.7 FEC Generator/Checker In transmit mode this circuit calculates and adds the Forward Error Correction (4 bits) to each byte presented to it. In receive mode the FEC information is used to correct most transmission errors that have occurred in a Mobitex¥ Data Block or in the Frame Head control bytes. 4.1.8 Interleave / De-interleave Buffer This circuit interleaves data bits within a data block before transmission and de-interleaves the received data block so the FEC system is best able to handle short noise bursts or signal fades. 4.1.9 Frame Sync Detect This circuit, (only active in receive mode), is used to look for the user specified 16-bit Frame Synchronization pattern which is transmitted to mark the start of every frame. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 7 of 37 MX909A PRELIMINARY INFORMATION 4.1.10 Rx Input Amp This amplifier allows the received signal input to the modem to be set to the optimum level by suitable selection of the external components R1 and R2. The value of R1 should be calculated to give (0.2 x VDD)VPP at the RXAMPOUT pin for a received '...11110000...' sequence. A capacitor may be fitted if AC coupling of the received signal is desired (see section 5.4), otherwise the DC level of the received signal should be adjusted so that the signal at the modem's RXAMPOUT pin is centered around VBIAS (VDD/2). 4.1.11 Tx/Rx Low Pass Filter This filter, which is used in both transmit and receive modes, is a low pass transitional Gaussian filter having a loss of 3dB at 0.3 times the selected bit rate (BT = 0.3). See Figure 4. In transmit mode, the bits are passed through this filter to eliminate the high frequency components which would otherwise cause interference into adjacent radio channels. In receive mode this filter is used with an increased BT factor (0.56) to reject HF noise, so the signal is suitable for extraction of the received data. 4.1.12 Tx Output Buffer This is a unity gain amplifier used in transmit mode to buffer the output of the Tx low pass filter. In receive mode, the input of this buffer is connected to VBIAS. When changing from Rx to Tx mode the input to this buffer will be connected to VBIAS for 2 bit periods to prevent unwanted signals, from the low pass filter, at the output. When the modem is set to powersave mode, the buffer is turned off and the TXOUT pin connected to VBIAS via a high value resistance. When exiting from power save mode the Tx output is only reconnected to the buffer after 2 bit periods, to prevent unwanted signals, from the low pass filter, at the output. Note: The RC low pass filter formed by the external components R4 and C5 between the Tx Output Buffer and the input to the radio's frequency modulator forms an important part of the transmit signal filtering. These components may form part of any DC level-shifting and gain adjustment circuitry. The ground connection to the capacitor C5 should be positioned to give maximum attenuation of high frequency noise into the modulator. R4 and C5 should be chosen so that the product of the resistance of R4 and capacitance of C5 is 0.34/bit rate (bit rate in bits per second). R4 should be not less than 47k: and the value used for the external capacitor should take into account parasitic capacitance. Suitable values being: 8000 bits/sec R4 100k: C5 430pF 4800 bits/sec 100k: 710pF The signal at the TXOUT pin is centered around VBIAS and is approx. (0.2 x VDD)VP-P, going positive for a logic '1' and negative for a logic '0', if the modem is not inverting the Tx data. A capacitor may be fitted if AC coupling of the input to the frequency modulator is desired, see section 5.4. The 'eye' diagram of the transmitted signal (after the external R4/C5 network) is shown in Figure 5. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 8 of 37 MX909A PRELIMINARY INFORMATION 0 -10 -20 GAIN (dB) -30 -40 -50 -60 -70 -80 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 FREQUENCY DATA RATE Figure 4: Typical Tx Filter Frequency Response (after the external RC Filter) 0 1 2 Figure 5: Transmitted Eye Signal Diagram (after the external RC Filter) 4.1.13 Rx Level/Clock Extraction These circuits, which operate only in receive mode, extract a bit rate clock from the received signal and measure the received signal amplitude and DC offset. This information is then used to extract the received bits and also to provide an input to the received Data Quality measuring circuit. The external capacitors C6 and C7 form part of the received signal level measuring circuit. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 9 of 37 MX909A PRELIMINARY INFORMATION 4.1.14 Clock Oscillator and Dividers This circuit derives the transmit bit rate (and the nominal receive bit rate) by frequency division of a reference frequency which may be generated by the on-chip Xtal oscillator or applied from an external source. Note: If the on-chip Xtal oscillator is to be used, then external components X1, C3, C4 and R3 are required. If an external clock source is to be used, then the external clock source should be connected to the XTAL/CLOCK input pin, the XTAL pin should be left unconnected, and X1, C3, C4, and R3 not fitted. 4.1.15 Scramble/De-scramble This block may be used to scramble/de-scramble the transmitted/received data blocks. It does this by modulating the data with a 511-bit pseudorandom sequence, as described in section 4.5.4, smoothes the transmitted spectrum, especially when repetitive sequences are to be transmitted. 4.2 Modem - µC Interaction In general, data is transmitted over air in the form of messages, or 'Frames', consisting of a 'Frame Head' optionally followed by one or more formatted data blocks. The Frame Head includes a Frame Synchronization pattern designed to allow the receiving modem to identify the start of a frame. The following data blocks are constructed from the 'raw' data using a combination of CRC (Cyclic Redundancy Checksum) generation, Forward Error Correction coding, Interleaving and Scrambling. Details of the message formats handled by this modem are given in section 4.3. To reduce the processing load on the host µC, this modem has been designed to perform as much as possible of the computationally intensive work involved in Frame formatting / de-formatting and (when in receive mode) in searching for and synchronizing onto the Frame Head. In normal operation the modem will only require servicing by the µC once per received or transmitted data block. Thus, to transmit a block, the host µC has only to load the unformatted (raw) binary data into the modem's data buffer then instruct the modem to format and transmit that data. The modem will then calculate and add the CRC bits as required, encode the result with Forward Error Correction coding, interleave then scramble the bits before transmission. In receive mode, the modem can be instructed to assemble a block's worth of received bits, de-scramble and de-interleave the bits, check and correct them (using the FEC coding) and check the resulting CRC before placing the received binary data into the Data Buffer for the µC to read. The modem can also handle the transmission and reception of unformatted data, to allow the transmission of special Bit and Frame Synchronization sequences or test patterns. 4.3 Data Formats 4.3.1 General Purpose Formats In a proprietary system the user may employ the data elements provided by this device to construct a custom, over-air data structure. For example, 16 bits of bit sync + 2 bytes of frame sync + 4 bytes of receiver and sender address + n data blocks would be: transmitted as: TQB (bit and frame sync) + TQB (addresses) + (n x TDB) + TSB received as: SFS + RSB + RSB + RSB + RSB + (n x RDB) Note: It is important to have established frame Synchronization before receiving data to enable the receiving device to decode synchronously. The user may add, by way of algorithms performed on the controlling device, additional data correction with the bytes in the data block task. 4.3.2 Mobitex¥ ¥ Frame Structure The Mobitex¥ format for transmitted data is in the form of a Frame Head immediately followed by a number of Data Blocks (0 to 32). The Frame Head consists of 7 bytes: 2 bytes of bit sync: 1100110011001100 from base, 0011001100110011 from mobile bits are transmitted from left to right ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 10 of 37 MX909A PRELIMINARY INFORMATION Mobitex¥ Frame Structure cont... 2 bytes of frame sync: System specific. 2 bytes of control data. 1 byte of FEC code, 4 bits for each of the control bytes: bits 7-4 (leftmost) operate on the first control byte. bits 3-0 (rightmost) operate on the second control byte. Each byte in the Frame Head is transmitted bit 7 (MSB) first to bit 0 (LSB) last. The Data Block consists of: 18 bytes of data. 2 bytes of CRC calculated from the 18 data bytes. 4 bits of FEC code for each of the data and CRC bytes The resulting 240 bits are interleaved and scrambled before transmission. The over air signal is composed of Frame Sync and Bit Sync patterns, Control bytes, and Data Blocks as shown in Figure 6. The binary data transferred between the modem and the host µC is shown in the Frame Head and Data Block of Figure 6 as shaded areas. Frame Head MSB Byte 7 6 5 4 3 Data LSB 2 1 0 loaded first 0 Bit Sync 1 1 Bit Sync 2 2 Frame Sync 1 3 Frame Sync 2 4 Control Byte 1 loaded last 5 Control Byte 2 6 FEC1 Block LSB MSB Byte 7 6 5 4 3 2 1 0 3 2 1 loaded first 0 1 2 3 4 5 6 7 Data 8 FEC 9 (18 bytes) 10 11 12 13 14 15 16 loaded last 17 18 CRC (2 bytes) 19 FEC2 0 INTERLEAVING / DE-INTERLEAVING SCRAMBLE / DESCRAMBLE OVER - AIR SIGNAL BITS BIT SYNC 16 FRAME SYNC CTRL BYTES FEC 16 16 8 DB 0 FRAME HEAD DB 1 DB 2 DB 3 DB 4 DATA BLOCKS DB n DATA BLOCKS (0 to 32) FRAME Figure 6: Mobitex¥ ¥ Over Air Signal Format ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 4.4 Page 11 of 37 MX909A PRELIMINARY INFORMATION The Programmer's View The modem appears to the programmer as 4 write only 8-bit registers shadowed by 3 read only registers, individual registers being selected by the A0 and A1 chip inputs: A1 A0 Write to Modem Read from Modem 0 0 Data Buffer Data Buffer 0 1 Command Register Status Register 1 0 Control Register Data Quality Register 1 1 Mode Register not used 4.4.1 Data Buffer This is an 18-byte read/write buffer which is used to transfer data (as opposed to command, status, mode, data quality and control information) between the modem and the host µC. It appears to the µC as a single 8-bit register; the modem ensuring that sequential µC reads or writes to the buffer are routed to the correct locations within the buffer. The µC should only access this buffer when the Status Register BFREE (Buffer Free) bit is '1'. The buffer should only be written to while in Tx mode and read from while in Rx mode (except when loading Frame Sync detection bytes while in Rx mode). 4.4.2 Command Register Writing to this register tells the modem to perform a specific action or actions, depending on the setting of the TASK, AQLEV and AQBC bits. Command 7 6 AQBC AQLEV Register 5 4 3 Reserved set to '0 0 0' 2 1 0 TASK When there is no action to perform and not 'powersaved', the modem will be in an 'idle' state. If the modem is in transmit mode the input to the Tx filter will be connected to VBIAS. In receive mode the modem will continue to measure the received data quality and extract bits from the received signal, supplying them to the de-interleave buffer, otherwise the received data is ignored. 4.4.2.1 Command Register B7: AQBC - Acquire Bit Clock This bit has no effect in transmit mode. In receive mode, when a byte with AQBC bit set to '1' is written to the Command Register, and TASK is not set to RESET, it initiates an automatic sequence designed to achieve bit timing Synchronization with the received signal as quickly as possible. This involves setting the Phase Locked Loop of the received bit timing extraction circuits to its widest bandwidth, then gradually reducing the bandwidth as timing Synchronization is achieved, until the 'normal' value set by the PLLBW bits of the Control Register is reached. Setting this bit to '0' (or changing it from '1' to '0') has no effect, however note that the acquisition sequence will be re-started every time that a byte written to the Command Register has the AQBC bit set to '1'. The AQBC bit will normally be set up to 12 bits before an SFS (Search for Frame Sync) or SFH (Search for Frame Head) task, however it may also be used independently to re-establish clock Synchronization quickly after a long fade. Alternatively, an SFS or SFH task may be written to the Command Register with the AQBC bit '0' if it is known that clock Synchronization does not need to be re-established. More details of the bit clock acquisition sequence are given in section 5.3. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 12 of 37 MX909A PRELIMINARY INFORMATION 4.4.2.2 Command Register B6: AQLEV - Acquire Receive Signal Levels This bit has no effect in transmit mode. In receive mode, when a byte with AQLEV bit set to '1' is written to the Command Register and TASK is not set to RESET, it initiates an automatic sequence designed to measure the amplitude and DC offset of the received signal as rapidly as possible. This sequence involves setting the measurement circuits to respond quickly at first, then gradually increasing their response time, thereby improving the measurement accuracy, until the 'normal' value set by the LEVRES bits of the Control Register is reached. Setting this bit to '0' (or changing it from '1' to '0') has no effect, however the acquisition sequence will be restarted every time a byte written to the Command Register has the AQLEV bit set to '1'. The AQLEV bit will normally be set up to 12 bits before an SFS (Search for Frame Sync) or SFH (Search for Frame Head) task is initiated, however it may also be used independently to re-establish signal levels quickly after a long fade. Alternatively, an SFS or SFH task may be written to the Command Register with the AQLEV bit at '0' if it is known that there is no need to re-establish the received signal levels. Further information of the level measurement acquisition sequence is provided in section 5.3. The error rate is highest immediately after an AQBC and AQLEV sequence is triggered and rapidly reduces to its static value soon after. These erroneous bits could incorrectly trigger the frame sync detection circuits. It is suggested that an SFH or SFS task be set 12 bits after setting either of the AQLEV or AQBC sequences. 4.4.2.3 Command Register B5, B4, B3 These bits should be set to '0'. 4.4.2.4 Command Register B2, B1, B0: TASK - Task Operations such as transmitting a data block are treated by the modem as 'tasks' and are initiated when the µC writes a byte to the Command Register with the TASK bits set to anything other than the 'NULL' code. The µC should not write a task (other than NULL or RESET) to the Command Register or write to or read from the Data Buffer when the BFREE (Buffer Free) bit of the Status Register is '0'. Different tasks apply in receive and transmit modes. When the modem is in transmit mode, all tasks other than NULL, RESET and TSO instruct the modem to transmit data from the Data Buffer, formatting it as required. For these tasks the µC should wait until the BFREE (Buffer Free) bit of the Status Register is '1', before writing the data to the Data Buffer, then it should write the desired task to the Command Register. If more than 1 byte needs to be written to the Data Buffer, byte number 0 of the block should be written first. Once the byte containing the desired task has been written to the Command Register, the modem will: Set the BFREE (Buffer Free) bit of the Status Register to '0'. Take the data from the Data Buffer as quickly as it can - transferring it to the Interleave Buffer for eventual transmission. This operation will start immediately if the modem is 'idle' (i.e. not transmitting data from a previous task), otherwise it will be delayed until there is sufficient room in the Interleave Buffer. Once all of the data has been transferred from the Data Buffer the modem will set the BFREE and IRQ bits of the Status Register to '1', (causing the chip IRQ output to go low if the IRQEN bit of the Mode Register has been set to '1') to tell the µC that it may write new data and the next task to the modem. In this way the µC can write a task and the associated data to the modem while the modem is still transmitting the data from the previous task. See Figure 7. When the modem is in receive mode, the µC should wait until the BFREE bit of the Status Register is '1', then write the desired task to the Command Register. Once the byte containing the desired task has been written to the Command Register, the modem will: Set the BFREE bit of the Status Register to '0'. Wait until enough received bits are in the De-interleave Buffer. Decode them as needed, and transfer any resulting data to the Data Buffer Then the modem will set the BFREE and IRQ bits of the Status Register to '1', (causing the IRQ output to go low if the IRQEN bit of the Mode Register has been set to '1') to tell the µC that it may read from the Data Buffer and write the next task to the modem. If more than 1 byte is contained in the Data Buffer, byte number '0' of the data will be read first. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 13 of 37 MX909A PRELIMINARY INFORMATION In this way the µC can read data and write a new task to the modem while the received bits needed for this new task are being stored in the De-interleave Buffer. See Figure 8. The above is not true for loading the Frame Sync detection bytes (LFSB): the bytes to be compared with the incoming data must be loaded prior to the task bits being written. Detailed timings for the various tasks are given in Figure 9 and Figure 10. Data from µC to Data Buffer Task 1 data Task 2 data Task and/or Commands from µC to Command Register Status Register BFREE Bit Status Register IRQ Bit IRQ Output (IRQEN = '1') TXOUT Signal from Task 1 from Task 2 Figure 7: Transmit Process RXIN Signal for Task 1 for Task 2 IRQ Output (IRQEN = '1') Status Register IRQ Bit Status Register BFREE Bit Task from µC to Command Register Task 1 Data from Data Buffer to µC Task 2 Task 1 data Figure 8: Receive Process Mobitex¥ ¥ Modem Tasks B2 B1 B0 Receive Mode Transmit Mode 0 0 0 NULL 0 0 1 SFH Search for Frame Head NULL 0 1 0 R3H Read 3 byte Frame Head 0 1 1 RDB Read Data Block TDB Transmit Data Block 1 0 0 SFS Search for Frame Sync TQB Transmit 4 Bytes 1 0 1 RSB Read Single Byte TSB Transmit Single Byte 1 1 0 LFSB Load Frame Sync Bytes TSO Transmit Scrambler Output 1 1 1 RESET Cancel any current action RESET Cancel any current action T7H Transmit 7 byte Frame Head Reserved 4.4.2.5 NULL - No effect This task is provided so that a AQBC or AQLEV command can be initiated without loading a new task. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 14 of 37 MX909A PRELIMINARY INFORMATION 4.4.2.6 SFH - Search for Frame Head Causes the modem to search the received signal for a Frame Head. The Frame Head will consist of a 16-bit Frame Sync followed by control data (see Figure 6). The search will continue until a Frame Head has been found, or until the RESET task is loaded. The search is carried out by first attempting to match the incoming bits against the previously programmed (task LFSB) 16-bit Frame Sync pattern (allowing up to any one bit (of 16) in error). When a match has been found, the modem will read the next 3 received bytes as Frame Head bytes, these bytes will be checked, and corrected if necessary, using the FEC bits. The two Frame Head Data bytes are then placed into the Data Buffer. The BFREE and IRQ bits of the Status Register will then be set to a logic '1' to indicate that the µC may read the 2 Frame Head Data bytes from the Data Buffer and write the next task to the Command Register. If the FEC indicates uncorrectable errors the modem will set the CRCFEC bit in the Status Register to a logic '1'. The MO/BA bit (Mobile or Base) in the Status Register will be set according to the polarity of the 3 bits preceding the Frame Sync pattern. 4.4.2.7 R3H - Read 3-byte Frame Head This task, which would normally follow an SFS task, will place the next 3 bytes directly into the Data Buffer. It also causes the modem to check the 3 bytes as Frame Head control data bytes and will set the CRCFEC bit to a logic '1' only if the FEC bits indicate uncorrectable errors. Note: This task will not correct any errors and, due to the Mobitex¥ FEC specification, will not detect all possible uncorrectable error patterns. The BFREE and IRQ bits of the Status Register will be set to '1' when the task is complete to indicate that the µC may read the data from the Data Buffer and write the next task to the modem's Command Register. The CRCFEC bit in the Status Register will be set according to the validity of the received FEC bits. 4.4.2.8 RDB - Read Data Block This task causes the modem to read the next 240 bits as a Mobitex¥ Data Block. It will de-scramble and de-interleave the bits, FEC correct and CRC check the resulting 18 data bytes and place them into the Data Buffer, setting the BFREE and IRQ bits of the Status Register to '1' when the task is complete to indicate that the µC may read the data from the Data Buffer and write the next task to the modem's Command Register. The CRCFEC bit will be set according to the outcome of the CRC check. Note: In receive mode the CRC checksum circuits are initialized on completion of any task other than NULL. 4.4.2.9 SFS - Search for Frame Sync This task, which is intended for special test and channel monitoring purposes, performs the first part only of a SFH task. It causes the modem to search the received signal for a 16-bit sequence which matches the Frame Synchronization pattern with up to any 1 bit in error. When a match is found the modem will set the BFREE and IRQ bits of the Status Register to '1' and update the MO/BA bit. The µC may then write the next task to the Command Register. 4.4.2.10 RSB - Read Single Byte This task causes the modem to read the next 8 bits and translate them directly (without de-interleaving or FEC) to an 8-bit byte which is placed into the Data Buffer (B7 will represent the earliest bit received). The BFREE and IRQ bits of the Status Register will then be set to '1' to indicate that the µC may read the data byte from the Data Buffer and write the next task to the Command Register. This task is intended for special tests and channel monitoring - perhaps preceded by an SFS task. 4.4.2.11 LFSB - Load Frame Sync Bytes This task takes 2 bytes from the Data Buffer and updates the Frame Sync detect bytes. The MSB of byte '0' is compared to the first bit of a received Frame Sync pattern and the LSB of byte '1' is compared to the last bit of a received Frame Sync pattern. This task does not enable Frame Sync detection. Unlike other Rx tasks, the data buffer must be loaded before the task is issued and the task must only be issued 'between' received messages, i.e. before the first task for receiving a message and after the last data is read out of the data buffer. Once the modem has read the Frame Sync bytes from the Data Buffer, the BFREE and IRQ bits of the Status Register will be set to '1', indicating to the µC that it may write the next task to the modem. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 15 of 37 MX909A PRELIMINARY INFORMATION 4.4.2.12 T7H - Transmit 7-byte Frame Head This task takes 6 bytes of data from the Data Buffer, calculates and appends 8 bits of FEC from bytes '4' and '5' then transmits the result as a complete Mobitex¥ Frame Head. Bytes '0' and '1' form the bit sync pattern, bytes '2' and '3' form the frame sync pattern and bytes '4' and '5' are the frame head control bytes. Bit 7 of byte '0' of the Data Buffer is sent first, bit 0 of the FEC byte last. Once the modem has read the data bytes from the Data Buffer, the BFREE and IRQ bits of the Status Register will be set to '1', indicating to the µC that it may write the next task and its data to the modem. 4.4.2.13 TQB - Transmit 4 Bytes This task takes 4 bytes of data from the Data Buffer and transmits them, bit 7 first. Once the modem has read the data bytes from the Data Buffer, the BFREE and IRQ bits of the Status Register will be set to '1', indicating to the µC that it may write the next task and its data to the modem. 4.4.2.14 TDB - Transmit Data Block This task takes 18 bytes of data from the Data Buffer, calculates and applies a 16-bit CRC and forms the FEC for the 18 data bytes and the CRC. This data is then interleaved and passed through the scrambler, if enabled, before being transmitted as a Mobitex¥ Data Block. Once the modem has read the data bytes from the Data Buffer, the BFREE and IRQ bits of the Status Register will be set to '1', indicating to the µC that it may write the next task and its data to the modem. Note: In transmit mode the CRC checksum circuit is initialized on completion of any task other than NULL. 4.4.2.15 TSB - Transmit Single Byte This task takes a byte from the Data Buffer and transmits the 8 bits, bit 7 first. Once the modem has read the data byte from the Data Buffer, the BFREE and IRQ bits of the Status Register will be set to '1', indicating to the µC that it may write the next task and its data to the modem. 4.4.2.16 TSO - Transmit Scrambler Output This task, intended for channel set-up, enables the scrambler and transmits its output. When the modem has started the task, the Status Register bits will not be changed and an IRQ will not be raised. The µC may write the next task and its data to the modem at any time and the scrambler output will stop when the new task has produced its first data. 4.4.2.17 RESET - Stop any current action This task takes effect immediately, and terminates any current action (task, AQBC or AQLEV) the modem may be performing and sets the BFREE bit of the Status Register to '1', without setting the IRQ bit. It should be used when VDD is applied to set the modem into a known state. Note: Due to delays in the internal switched capacitor filter, it will take approximately 3 bit times for any change to become apparent at the TXOUT pin. 4.4.2.18 Task Timings The device should not be given a new task for at least 2 bit times after the following: Changing from powersave state to normal operation. Changing the Tx/Rx bit. Resetting or after power is applied to the device. This is to ensure that the internal operation of the device is initialized correctly for the new task. Note: This only applies to the Command Register, other registers may be accessed as normal. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 16 of 37 MX909A PRELIMINARY INFORMATION Ref. Figure 9 and Figure 10 t1 Time from writing first task (modem in 'idle' state) to application of first transmit bit to Tx Low Pass filter t2 Time from application of first bit of task to TX Low Pass Filter until BFREE goes to a logic 1 t3 Time to transmit all bits of task t4 Max time allowed from BFREE going to a logic 1 for next task (and data) to be written to the modem t5 Time to receive all bits of task t6 Maximum time between first bit of task entering de-interleave circuit and task being written to modem t7 Time from last bit of task entering de-interleave circuit to BFREE going to a logic '1' Data to Data Buffer Task to Command Register 1 2 t4 Typical (bit-times) 1 T7H TQB TDB TSB T7H TQB TDB TSB T7H TQB TDB TSB SFH R3H RDB RSB SFH R3H RDB RSB Any 36 24 20 1 56 32 240 8 18 6 218 6 56 24 240 8 14 18 218 6 1 3 2 1 Task Any 3 t4 t4 IBEMPTY Bit BFREE Bit t2 t2 t2 t3 t3 t3 t1 Bits to Tx Lowpass Filter from Task 3 from Task 2 from Task 1 Modem Tx Output Figure 9: Transmit Mode Timing Diagram Modem Rx Input Bits to De-Interleave Circuit for Task 1 for Task 2 for Task 3 t5 t5 t5 Data from Data Buffer Task to Command Register t6 1 t6 t7 3 2 1 2 t6 t7 3 t7 BFREE Bit Figure 10: Receive Mode Timing Diagram ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 17 of 37 MX909A PRELIMINARY INFORMATION 4.4.2.19 Tx/Rx Low Pass Filter Delay The previous task timing figures are based on the signal at the input to the Tx Low Pass filter (in transmit mode) or the input to the de-interleave buffer (in receive mode). There is an additional delay of about 2 bit times in both transmit and receive modes due to the Tx/Rx Low Pass filter, as illustrated in Figure 11. Figure 11: Low Pass Filter Delay 4.4.3 Control Register This 8-bit write only register controls the modem's bit rate, the response times of the receive clock extraction and signal level measurement circuits and the internal analog filters. Control Register 7 6 CKDIV 4.4.3.1 5 4 3 HI/LO DARA 2 LEVRES 1 0 PLLBW Control Register B7, B6: CKDIV - Clock Division Ratio and B5: HI/LO - Xtal Range Selection These bits control a frequency divider driven from the clock signal present at the XTAL pin, which determines the nominal bit rate. The table below shows how bit rates of 4000/8000/16000 or 4800/9600/19200 bits/sec may be obtained from common Xtal frequencies: B5 XTAL / CLOCK Frequency (MHz) 1 0 8.192 9.8304 4.096 (12.288/3) 4.9152 2.048 (6.144/3) 2.4576 (12.288/5) 4.096 (12.288/3) 4.9152 2.048 (6.144/3) 2.4576 (12.288/5) 1.024 1.2288 Division Ratio: B7 B6 XTAL Frequency Data Rates (bits per second) Data Rate 0 0 256 128 16000 19200 8000 9600 0 1 512 256 16000 19200 8000 9600 4000 4800 1 0 1024 512 8000 9600 4000 4800 1 1 2048 1024 4000 4800 Note: Device operation is not guaranteed below 4000 or above 19200 bits/sec. The values used for C3 and C4 should be suitable for the frequency of the crystal X1. As a guide; C3 = C4 = 33pF for X1 < 5MHz, and C3 = C4 = 18pF for X1 > 5MHz. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 18 of 37 MX909A PRELIMINARY INFORMATION 4.4.3.2 Control Register B4: DARA - Data Rate This bit operates in both transmit and receive modes, optimizing the modem's internal signal filtering according to the relevant bit rate. If the bit rate used is above 10k bits/sec then this bit should be set to '1' , if not, then it should be set to '0'. 4.4.3.3 Control Register B3, B2: LEVRES - Level Measurement Response Time These two bits have no effect in transmit mode. In receive mode, they set the 'normal' response time of the Rx signal amplitude and DC offset measuring circuits. This setting will be temporarily overridden by the automatic sequencing of an AQLEV command. B3 B2 0 0 Hold Keep current values of amplitude and offset 0 1 Peak Averaging Track input signal using bit peak averaging 1 0 Peak Detect Track input signal using peak detect 1 1 Lossy Peak Detect Track input signal using lossy peak detection For Mobitex¥ systems, and most general purpose applications using the modem, these bits should normally be set to 'Peak Averaging', except when the µC detects a receive signal fade, when 'Hold' should be selected. The 'Lossy Peak Detect' setting is intended for systems where the µC cannot detect signal fades or the start of a received message, as it allows the modem to respond quickly to fresh messages and recover rapidly after a fade without µC intervention - although at the cost of reduced Bit Error Rate versus Signal to Noise performance. Note: Since the measured levels are stored on the external capacitors C6 and C7, they will decay gradually towards VBIAS when the 'Hold' setting is chosen, the discharge time-constant being approximately 2000 bit times. Further information of the level measurement system is provided in section 5.3. 4.4.3.4 Control Register B1, B0: PLLBW These two bits have no effect in transmit mode. In receive mode, they set the 'normal' bandwidth of the Rx clock extraction Phase Locked Loop circuit. This setting will be temporarily overridden by the automatic sequencing of an AQBC command. B1 B0 PLL Bandwidth Suggested use 0 0 Hold Signal fades 0 1 Narrow ± 20ppm or better Xtals 1 0 Medium Wide tolerance Xtals or long preamble acquisition 1 1 Wide Quick acquisition The 'hold' setting is intended for use during signal fades, otherwise the minimum bandwidth consistent with the transmit and receive modem bit rate tolerances should be chosen. The wide and medium bandwidth settings are intended for systems where the µC cannot detect signal fades or the start of a received message, as they allow the modem to respond rapidly to fresh messages and recover rapidly after a fade without µC intervention - although at the cost of reduced Bit Error Rate versus Signal to Noise performance. Note: Further information of the clock extraction system is provided in section 5.3. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 19 of 37 MX909A PRELIMINARY INFORMATION 4.4.4 Mode Register The contents of this 8-bit write only register control the basic operating modes of the modem: Mode Register 7 6 IRQEN INVBIT 4.4.4.1 5 Tx/Rx 4 3 SCREN PSAVE 2 DQEN 1 0 Reserved set to '0 0' Mode Register B7: IRQEN- IRQ Output Enable When this bit is set to '1', the IRQ chip output pin is pulled low (to VSS) whenever the IRQ bit of the Status Register is a '1'. 4.4.4.2 Mode Register B6: INVBIT - Invert Bits This bit controls inversion of transmitted and received bit voltages. When set to '1' all data is inverted in the Tx and Rx data paths so a transmitted '1' is a voltage below VBIAS at the TXOUT pin and a received '0' is a voltage above VBIAS at the RXIN pin. Data will be inverted immediately after this bit is set to '1'. 4.4.4.3 Mode Register B5: TX/RX - Tx/Rx Mode Setting this bit to '1' puts the modem into Transmit mode, clearing it to '0' puts the modem into Receive mode. When changing from Rx to Tx there must be a 2-bit pause before setting a new task to allow the filter to stabilize. (See also PSAVE bit). Note: Changing between receive and transmit modes will cancel any current task 4.4.4.4 Mode Register B4: SCREN - Scramble Enable The scrambler only takes effect during the transmission or reception of a Mobitex¥ Data Block and during a TSO task. Setting this bit to '1' enables scrambling, clearing it to '0' disables scrambling. The scrambler is only operative, if enabled by this control bit, during TSO, RDB or TDB, it is held in a reset state at all other times. This bit should not be changed while the modem is decoding or transmitting a Mobitex¥ Data Block. 4.4.4.5 Mode Register B3: PSAVE - Powersave When this bit is a '1', the modem will be in a 'powersave' mode in which the internal filters, the Rx bit and Clock extraction circuits and the Tx output buffer will be disabled, and the TXOUT pin will be connected to VBIAS through a high value resistance. The Xtal Clock oscillator and the µC interface logic will continue to operate. Setting the PSAVE bit to '0' restores power to all of the chip circuitry. Note: The internal filters will take approximately 2 bit times to settle after the PSAVE bit is taken from '1' to '0'. 4.4.4.6 Mode Register B2: DQEN - Data Quality IRQ Enable In receive mode, setting this bit to '1' causes the IRQ bit of the Status Register to be set to '1' whenever a new Data Quality reading is ready. (The DQRDY bit of the Status Register will also be set to '1' at the same time.) In transmit mode this bit has no effect. 4.4.4.7 Mode Register B1, B0 These bits should be set to '0'. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 20 of 37 MX909A PRELIMINARY INFORMATION 4.4.5 Status Register This register may be read by the µC to determine the current state of the modem. Status Register 7 6 5 BFREE IRQ 4 3 1 DQRDY DIBOVF IBEMPTY 2 CRCFEC 0 Reserved MO/BA 4.4.5.1 Status Register B7: IRQ - Interrupt Request This bit is set to '1' by: The Status Register BFREE bit going from '0' to '1', unless this is caused by a RESET task or by a change to the Mode Register PSAVE or TX/RX bits. The Status Register IBEMPTY bit going from '0' to '1', unless this is caused by a RESET task or by changing the Mode Register PSAVE or TX/RX bits. The Status Register DQRDY bit going from '0' to '1' (If DQEN = '1' ). The Status Register DIBOVF bit going from '0' to '1'. The IRQ bit is cleared to '0' immediately after a read of the Status Register. If the IRQEN bit of the Mode Register is '1', then the chip IRQ output will be pulled low (to VSS) whenever the IRQ bit is '1'. 4.4.5.2 Status Register B6: BFREE - Data Buffer Free This bit reflects the availability of the Data Buffer and is cleared to '0' whenever a task other than NULL, RESET or TSO is written to the Command Register. In transmit mode, the BFREE bit will be set to '1' (also setting the Status Register IRQ bit to '1') by the modem when the modem is ready for the µC to write new data to the Data Buffer and the next task to the Command Register. In receive mode, the BFREE bit is set to '1' (also setting the Status Register IRQ bit to '1') by the modem when it has completed a task and any data associated with that task has been placed into the Data Buffer. The µC may then read that data and write the next task to the Command Register. The BFREE bit is also set to '1', but without setting the IRQ bit, by a RESET task or when the Mode Register PSAVE or TX/RX bits are changed. 4.4.5.3 Status Register B5: IBEMPTY - Interleave Buffer Empty In transmit mode, this bit will be set to '1', also setting the IRQ bit, when less than two bits remain in the Interleave Buffer. Any transmit task written to the modem after this bit goes to '1' will be too late to avoid a gap in the transmit output signal. The bit is also set to '1' by a RESET task or by a change of the Mode Register TX/RX or PSAVE bits, but in these cases the IRQ bit will not be set. The bit is cleared to '0' by writing a task other than NULL, RESET or TSO to the Command Register. Note: When the modem is in transmit mode and the Interleave Buffer is empty, a mid-level voltage (VBIAS) will be applied to the Tx low pass filter. In receive mode this bit will be '0'. 4.4.5.4 Status Register B4: DIBOVF - De-Interleave Buffer Overflow In receive mode this bit will be set to '1' (also setting the IRQ bit) when a task is written to the Command Register too late to allow continuous reception. The bit is cleared to '0' by reading the Status Register or by writing a RESET task to the Command Register or by changing the PSAVE or TX/RX bits of the Mode Register. In transmit mode this bit will be '0'. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 21 of 37 MX909A PRELIMINARY INFORMATION 4.4.5.5 Status Register B3: CRCFEC - CRC or FEC Error In receive mode this bit will be updated at the end of a Mobitex¥ Data Block task, after checking the CRC, and at the end of receiving Frame Head control bytes, after checking the FEC. A '0' indicates that the CRC was received correctly or the FEC did not find uncorrectable errors, a '1' indicates that errors are present. The bit is cleared to '0' by a RESET task or by changing the PSAVE or TX/RX bits of the Mode Register. In transmit mode this bit will be '0'. 4.4.5.6 Status Register B2: DQRDY - Data Quality Reading Ready In receive mode, this bit is set to '1' whenever a Data Quality reading has been completed. See section 4.4.6. The bit is cleared to '0' by a read of the Data Quality Register. Immediately after a RESET task, or a change in the PSAVE or TX/RX bits to '0', the DQRDY bit may be set and generate an interrupt. The value in the Data Quality Register will not be valid in this case. 4.4.5.7 Status Register B1: MO/BA - Mobile or Base Bit Sync Received In receive mode this bit is updated at the end of the SFS and SFH tasks. This bit is set to '1' whenever the 3 bits immediately preceding a detected Frame sync are '011' (received left to right), with up to any one bit in error. The bit is set to '0' if the bit pattern is '100', again with up to any one bit in error. Thus, if this bit is set to '1' then the received message is likely to have originated from a Mobile and if it is set to '0' from a Base Station. See section 4.3. In transmit mode this bit is a logic '0'. 4.4.5.8 Status Register B0 This bit will always be set to '0'. 4.4.6 Data Quality Register This is intended to indicate the quality of the receive signal during a Mobitex¥ Data Block or 30 single bytes. In receive mode, the modem measures the 'quality' of the received signal by comparing the actual received zero crossing time against an internally generated time. This value is averaged over 240 bits and at the end of the measurement the Data Quality Register and the DQRDY bit in the Status Register is updated. Note: An interrupt will only occur at this time if the DQEN bit = '1'. To provide Synchronization with Data Blocks, and to ensure the Data Quality Register is updated in preparation to be read when the RDB task finishes, the measurement process is reset at the end of tasks SFH, SFS, RDB and R3H. In transmit mode all bits of the Data Quality Register will be '0'. Figure 12 shows how the value (0-240) read from the Data Quality Register varies with received signal to noise ratio. 240 220 Data Quality Register Reading 200 180 160 140 120 100 80 60 40 20 0 3 4 5 6 7 8 9 10 11 12 Received Signal-to-Noise Ratio (dB) Figure 12: Typical Data Quality Reading (after 240 bits) vs. S/N, (noise in bit rate bandwidth) ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 4.5 Page 22 of 37 MX909A PRELIMINARY INFORMATION CRC, FEC, Interleaving and Scrambling Information 4.5.1 CRC This is a 16-bit CRC code used in the Mobitex¥ Data Block. In transmit it is calculated by the modem from the 18 data bytes using the following generator polynomial: g(x) = x16 + x12 + x5 + 1 i.e. CRC - CCITT X.25. This code detects all (single) error bursts of up to 16 bits in length and about 99.998% of all other error patterns. The CRC register is initialized to all '1s' and the CRC is calculated octet by octet starting with the least significant bit of 'byte 0'. The CRC calculated is bit-wise inverted and appended to the data bytes with the most significant bit transmitted earliest. In receive mode, a 16-bit CRC code is generated from the 18 data bytes of each Mobitex¥ Data Block as above and the bit-wise inverted value is compared with the received CRC bytes. If a mismatch is present, then an error has been detected. 4.5.2 FEC In transmit mode, during T7H and TDB, the modem generates a 4-bit Forward Error Correction code for each coded byte. The FEC is defined by the following H matrix: 7_______0 3___0 11101100 1000 H = 11010011 0100 10111010 0010 01110101 0001 Generation of the FEC consists of logically ANDing the byte to be transmitted with bits 7 to 0 of each row of the H matrix. Even parity is generated for each of the 4 results and these 4 parity bits, in the positions indicated by the last 4 columns of the H matrix, form the FEC code. In checking the FEC, the received 12-bit word is logically ANDed with each row of the H matrix (earliest bit received compared with the first column). Again even parity is generated for the 4 resulting words and these parity bits form a 4-bit nibble. If this nibble is all zero then no errors have been detected. Other results 'point' to the bit in error or indicate that uncorrectable errors have occurred. This code can correct any single error that has occurred in each 12-bit (8 data + 4 FEC) section of the message. Example: If the byte to be coded is '00101100' then the FEC is derived as follows: H matrix row: 1 2 3 4 A 11101100 11010011 10111010 01110101 B 00101100 00101100 00101100 00101100 A AND B 00101100 00000000 00101000 00100100 Even Parity: 1 0 0 0 Where A is bits 7 - 0 of one row of the H matrix and B is the byte to be coded. The even parity bits apply to the result of 'A AND B'. So the word formed will be: '00101100 1000' sent left to right When the same process is carried out on these 12 bits as above, using all 12 bits of each H matrix row, the resulting 4 parity bits will be '0000'. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 23 of 37 MX909A PRELIMINARY INFORMATION 4.5.3 Interleaving The 240 bits of a Mobitex¥ Data Block are interleaved by the modem before transmission to give protection against noise bursts and short fades. Interleaving is not performed on any bits in the Mobitex¥ Frame Head. Considering the 240 bits to be numbered sequentially before interleaving as 0 to 239 ('0' = bit 7 of byte 0, '11' = bit 0 of FEC for byte 0, ... ,'239' = bit 0 of FEC for byte 19 - see Figure 6), then they will be transmitted as shown in Figure 13. The modem performs the inverse operation (de-interleaving) in receive mode on Mobitex¥ Data Blocks. INPUT DATA DATA BLOCK 7 0 6 1 INPUT DATA 2 3 4 5 5 4 3 2 1 12 13 14 15 16 17 18 19 20 21 22 23 2 24 25 26 27 28 29 30 31 32 33 34 35 3 36 37 38 39 40 41 42 43 44 45 46 47 4 48 49 50 51 52 53 54 55 56 57 58 59 5 60 61 62 63 64 65 66 67 68 69 70 71 6 72 73 74 75 76 77 78 79 80 81 82 83 7 84 85 86 87 88 89 90 91 92 93 94 95 8 96 97 98 99 100 101 102 103 104 105 106 107 9 108 109 110 111 112 113 114 115 116 117 118 119 10 120 121 122 123 124 125 126 127 128 129 130 131 11 132 133 134 135 136 137 138 139 140 141 142 143 12 144 145 146 147 148 149 150 151 152 153 154 155 13 156 157 158 159 160 161 162 163 164 165 166 167 14 168 169 170 171 172 173 174 175 176 177 178 179 15 180 181 182 183 184 185 186 187 188 189 190 191 16 192 193 194 195 196 197 198 199 200 201 202 203 loaded last 17 204 205 206 207 208 209 210 211 212 213 214 215 CRC 18 216 217 218 219 220 221 222 223 224 225 226 227 CRC 19 228 229 230 231 232 233 234 235 236 237 238 239 Byte loaded first 0 INTERLEAVED OUTPUT TO LOW PASS FILTER FIRST OUT 0 12 24 36 48 60 72 84 96 108 120 132 144 156 168 180 192 204 216 228 1 13 25 37 49 61 73 85 97 109 121 133 145 157 169 181 193 205 217 229 2 14 26 38 50 62 74 86 98 110 122 134 146 158 170 182 194 206 218 230 3 15 27 39 51 63 75 87 99 111 123 135 147 159 171 183 195 207 219 231 4 16 28 40 52 64 76 88 100 112 124 136 148 160 172 184 196 208 220 232 5 17 29 41 53 65 77 89 101 113 125 137 149 161 173 185 197 209 221 233 6 18 30 42 54 66 78 90 102 114 126 138 150 162 174 186 198 210 222 234 7 19 31 43 55 67 79 91 103 115 127 139 151 163 175 187 199 211 223 235 1 6 0 7 8 20 32 44 56 68 80 92 104 116 128 140 152 164 176 188 200 212 224 236 RESULTING FEC 2 3 1 0 9 10 11 8 9 21 33 45 57 69 81 93 105 117 129 141 153 165 177 189 201 213 225 237 10 22 34 46 58 70 82 94 106 118 130 142 154 166 178 190 202 214 226 238 11 23 35 47 59 71 83 95 107 119 131 143 155 167 179 191 203 215 227 239 LAST OUT Figure 13: Interleaving - Input / Output 4.5.4 Scrambling All formatted bits of a Mobitex¥ Data Block are passed through a 9-bit scrambler. This scrambler is initialized at the beginning of the first Data Block in every Frame. The 511-bit sequence is generated with a 9-bit shift register with the output of the 5th and 9th stages XOR'ed and fed back to the input of the first stage. The scrambler is disabled during all other tasks, apart for TSO. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 24 of 37 MX909A PRELIMINARY INFORMATION 5 Application 5.1 Transmit Frame Example If the device is required to send a Mobitex¥ Frame the following control signals and data should be issued to the modem, provided the device is not starting from a powersave state, TX/RX is set to '1' and that SCREN, DARA, CKDIV, and DQEN have been set as required after power was applied to the device: 1. 6 bytes forming the Frame Head are loaded into the Data Buffer, followed by a 2-bit pause to let the filter stabilize, followed by setting T7H task. 2. Device interrupts host µC with IRQ when the 6th byte is read from the Data Buffer. 3. Status Register is read and 18 bytes are loaded, followed by setting TDB task. 4. Device interrupts host µC with IRQ when 18th byte is read from the Data Buffer. 5. Status Register is read, host may load data and set next task as required: GOTO '1' if the last Data Block for this Frame has been transmitted and another Frame is to be immediately transmitted GOTO '3' if another Data Block in this Frame is to be transmitted GOTO '6' if no more data is to be immediately sent 6. 1 byte representing the 'hang byte' is loaded into the Data Buffer, followed by setting the TSB task. If the 'hang byte' has been transmitted and no further data is to be sent, then a new task does not need be written and the µC can wait for the IBEMPTY interrupt ,when after a few bits, to allow for the Tx filter delay, it can shut down the Tx RF circuits. A top level flowchart of the transmit process is shown in Figure 14. 5.1.1 Hang Byte The filtering required to reduce the transmitted bandwidth causes energy from each bit of information to be spread across 3 bit times. To ensure that the last bit transmitted is received correctly it is necessary to add an 8-bit 'hang byte' to the end of each message. Thus the tasks required to transmit an isolated Mobitex¥ frame are: T7H + (n x TDB) + TSB When receiving this data, the extra byte can be ignored as its only function is to ensure integrity of the last bit and not to carry any information itself. It is suggested that a '00110011' or '11001100' pattern is used for this 'hang byte'. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 25 of 37 MX909A PRELIMINARY INFORMATION START Write Task = 'RESET' to Command Register Write 6 bytes of Frame Head to Data Buffer Write 18 bytes of data to Data buffer Set C Data Block Counter to length of message Wait 2-bit times for lowpass filter to settle Write Task = TDB to Command Register Write CKDIV, HI/LO, and DARA values to Control Register Write Task = 'T7H' to Command Register Wait for IRQ line to go low then execute Tx I.S.R. Write IRQEN = '1' SCREN = '1', TX/RX = '1' to Mode Register Wait for IRQ line to go low then execute Tx I.S.R. Decrement C Data Block Counter Read Status Register Data Block Counter = '0'? No Yes Yes Tx Interrupt Service Routine (I.S.R.) Write Task = 'TSB' to Command Register Read Status Register IRQ bit = '1'? Yes Write 'Hang Byte' to Data Buffer BFREE = '1'? No No Data Block Counter = '0'? FINISH No Service other interrupts Yes Yes Fault detected: Abort transmission No Fault detected: Abort transmission IBEMPTY = '1'? No BFREE = '1'? Yes Figure 14: Transmit Process Flow Chart ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 5.2 Page 26 of 37 MX909A PRELIMINARY INFORMATION Receive Frame Example If the device is required to decode a Mobitex¥ Frame the following control signals should be issued to the modem, assuming the device is initially not in powersave, PLLBW, LEVRES, SCREN are set as required, TX/RX bit is set to '0', the Frame Sync bytes have not been set and the carrier has been detected, or a Frame Head is expected: 1. 2 Frame Sync bytes are loaded. 2. 2 bits after the carrier has been detected, an LFSB task is loaded, along with setting the AQLEV and AQBC bits, to initiate the level acquisition and bit clock extraction sequences. 3. Device interrupts host µC with IRQ when 2nd byte is read from Data Buffer. 4. Status Register is read, 12 bits later task is set to SFH to search for a Mobitex¥ Frame Head. 5. Device will interrupt host µC with IRQ when valid Frame Sync is detected and header bytes decoded. 6. Host µC reads Status Register, checks MO/BA and CRCFEC bit and reads out 2 Frame Head control bytes. Host µC sets the task to RDB to receive a Mobitex¥ Data Block. 7. 8. Device will interrupt host µC with IRQ when the Data Block has been received and the CRC has been calculated. 9. Host µC reads Status Register, checks CRC validity and reads 18 Data Block bytes. The Data Quality Register can also be read to obtain the received S/N level. 10. Host µC sets task if more information is expected: GOTO '4' if last Data Block and another Frame Head are expected. GOTO '7' if another Mobitex¥ Data Block is expected. If the last Data Block has been decoded and no further information is expected, then the task bits do not need to be set, as the device will automatically select the idle state. A top level flowchart of the receive process is shown in Figure 15. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 27 of 37 MX909A PRELIMINARY INFORMATION START Write Task = RESET to Command Register Wait for IRQ line to go low then execute Rx I.S.R. Wait for IRQ line to go low then execute Rx I.S.R. Write PLLBW, LEVRES, DARA, and CKDIV values to Control Register Wait 12 Bit Periods CRCFEC = '1' ? A Write IRQEN = '1', SCREN = '1', TXRX = '0’ to Mode Register Write Task = SFH to Command Register Data Carrier Detected Wait for IRQ line to go low then execute Rx I.S.R. Wait 2 Bit Periods Read MO/BA and CRCFEC bits from Status Register Yes No Log "nth block in error" in µC Read 18 bytes of data from Data Buffer Yes µC expect Mobitex Data Block? B No A Write 2 Frame Sync Bytes to Data Buffer Read 2 Byte Frame Head from Data Buffer Yes µC expect new Frame Head B Write Task = LFSB, AQLEV = '1', AQBC = '1' to Command Register, No Write Task = RDB to Command Register Rx Interrupt Service Routine (I.S.R.) Read Status Register IRQ bit = '1' ? FINISH No Service other interrupts Yes Fault detected: Abort reception No Fault detected: Abort reception Yes DIBOVF = '1' ? No BFREE = '1' ? Yes Figure 15: Receive Process Flow Chart ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 5.3 Page 28 of 37 MX909A PRELIMINARY INFORMATION Clock Extraction and Level Measurement Systems The modem needs to make accurate measurements of the received signal amplitude, DC offset and bit timing to achieve reasonable error rates. Accurate measurements, especially in the presence of noise, are best made by averaging over a relatively long time. However, in most cases the modem will be used to receive isolated messages from a distant transmitter that is only turned on for a very short time before the message starts. Also, the received baseband signal out of the radio's frequency discriminator will have a DC offset due to small differences between the receiver and transmitter reference oscillators and therefore their 'carrier' frequencies. To allow for this situation, AQBC and AQLEV (Acquire Bit Clock and Level) commands are provided. When triggered, this causes the modem to follow an automatic sequence designed to perform these measurements as quickly as possible. The AQLEV sequence always starts with a measurement of the average signal voltage over a period of 1 bit time. The sequence continues by measuring the positive going and negative going peaks of the signal. The attack and decay times used in this 'Lossy Peak Detect' mode are such that a sufficiently accurate measurement can be made within 16 bits of a ' 1100 ...' pattern (i.e. the bit sync sequence) to allow the bit clock extraction circuits to operate. If SFH or SFS is set within 28 bit times of AQLEV the device will switch to the Residual setting when Frame Sync is found. If an SFH or SFS task is not set then the Residual setting will be active 30 bits after AQLEV was set. The Residual setting is that programmed in the LEVRES bits and is either 'Lossy Peak Detect', 'Peak Detect', 'Peak Averaging' or 'Hold'. Note: For normal operation the LEVRES bits would only be set to 'hold' for the duration of a fade. If SFH or SFS is set within 14 bit times of AQBC the device will switch to the Medium setting when Frame Sync is found. If an SFH or SFS task is not set then the Medium setting will be active 16 bits after AQBC was set. The PLLBW will change to the Residual setting 30 bits later. The complete AQBC and AQLEV sequence, as illustrated in Figure 16, for the situation where the µC can detect the received carrier so that it knows when to issue the AQBC and AQLEV commands. Note: Due to the delay through the Rx low pass filter, the AQBC and AQLEV sequences should not be started until approximately 2 bit times after the received carrier has been detected at the discriminator output. See Figure 16. In a system where the host µC is not able to detect the received carrier, the AQBC and AQLEV sequences may be started at any time - possibly when no carrier is being received. However, in this case the clock and level acquisition will take longer since the circuits will have to recover from the change from a large amplitude noise signal at the output of the frequency discriminator to the wanted signal, probably with a DC offset. In this type of system, the time between the turn-on of the transmitter and the start of the Frame Sync pattern should be extended - preferably by extending the Bit Sync sequence to 32 or even 48 bits. Note: The clock extraction circuits work by detecting the timing of edges, i.e. a change from '0' to '1' or '1' to '0'. They will eventually fail if '1' or '0' is transmitted continuously. Similarly, the level measuring circuits require '00' and '11' bit pairs to be received at reasonably frequent intervals. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 29 of 37 AQLEV Sequence SFH or SFS is set up to 28 bits after AQLEV; Frame Sync is being searched for: 1 bit of clamp. Lossy Peak detect until Frame Sync is detected. Residual setting. SFH or SFS is not set; Frame Sync is not being searched for: 1 bit of clamp. 30 bits of Lossy Peak Detect. Residual setting. AQBC Sequence SFH or SFS is set up to 14 bits after AQBC; Frame Sync is being searched for: 'Wide' setting until Frame Sync detected. 30 bits of 'Medium' setting. Residual setting. SFH or SFS is not set; Frame Sync is not being searched for: 16 bits of 'Wide' setting. 30 bits of 'Medium' setting. Residual setting. Bit Sync Noise MX909A PRELIMINARY INFORMATION Frame Sync Rest of Frame Rx Signal from FM discriminator to Modem 2-Bit delay (min.) Set AQBC and AQLEV bits to start Acquisition sequences Level Measurement and clock extraction circuits RESET Increasing accuracy and lengthening response times Figure 16: Bit Clock and Level Acquisition Example ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 5.4 Page 30 of 37 MX909A PRELIMINARY INFORMATION AC Coupling For a practical circuit, when AC coupling from the modem's transmit output to the Frequency Modulator and between the receiver's Frequency Discriminator and the receive input of the modem may be desired. There are, however, two problems:. 1. AC coupling of the signal degrades the Bit Error Rate performance of the modem (at 8kbits/sec, without FEC, for different degrees of AC coupling). See Figure 17 2. Any AC coupling at the receive input will transform any step in the voltage at the discriminator output to a slowly decaying pulse which can confuse the modem's level measuring circuits. As shown in Figure 18, the time for this step to decay to 37% of its original value is 'RC' when: RC = 1/( 2 x π x the 3dB cut-off frequency of the RC network ) and is 8 ms - or 64 bit times at 8kbits/sec for a 20Hz network. -1 10 -2 BIT-ERROR-RATE 10 -3 10 Tx and Rx dc coupled Tx 5Hz, Rx dc coupled Tx 5Hz, Rx 10Hz -4 10 Tx 5Hz, Rx 30Hz Tx 5Hz, Rx 100Hz -5 10 4 5 6 7 8 9 10 11 SIGNAL-TO-NOISE RATIO (dB) (noise in 8kHz bandwidth) 12 13 Figure 17: Typical Bit Error Rates (at 8kbits/sec, without FEC, for different degrees of AC decoupling) Step Input to RC Circuit 100% Output of RC Circuit 37% T = RC Figure 18: Decay Time - AC Coupling Note: For these reasons the maximum 3dB cut-off frequencies would appear to be approximately 5Hz in the Tx path and 20Hz in the Rx path at 8kbits/sec. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 5.5 Page 31 of 37 MX909A PRELIMINARY INFORMATION Radio Performance The maximum data rate that can be transmitted over a radio channel using this modem depends on: RF channel spacing. Allowable adjacent channel interference. Bit rate. Peak carrier deviation (modulation index). Tx and Rx reference oscillator accuracy’s. Modulator and demodulator linearity. Receiver IF filter frequency and phase characteristics. Use of error correction techniques. Acceptable error rate. As a guide, 8kbits/sec can be achieved (subject to local regulatory requirements) over a system with 12.5kHz channel spacing if the transmitter frequency deviation is set to ± 2kHz peak for a repetitive ' 1100... ' pattern and the maximum difference between transmitter and receiver 'carrier' frequencies is less than 1500Hz. The modulation scheme employed by this modem is designed to achieve high data throughput, by exploiting as much as possible, the RF channel bandwidth. This does, however, place constraints on the performance of the radio. In particular, attention must be paid to: Linearity, frequency and phase response of the Tx Frequency Modulator. The bandwidth and phase response of the receiver's IF filters. Accuracy of the Tx and Rx reference oscillators, as any difference will shift the received signal towards the skirts of the IF filter response and cause a DC offset at the discriminator output. Viewing the received signal eye pattern, using the output of the frequency discriminator, gives a good indication of the overall transmitter/receiver performance. Tx FREQUENCY MODULATOR Rx FREQUENCY DISCRIMINATOR SIGNAL LEVEL ADJUSTMENT DC LEVEL ADJUSTMENT SIGNAL AND DC LEVEL ADJUSTMENT RXAMPOUT RXIN µC Rx CIRCUITS D0-D7 A0-A1 D0-D7 A0-A1 CS RD WR IRQ CS RD WR IRQ Tx CIRCUITS TXOUT MX909A GMSK MODEM Figure 19: Typical System Installation ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 32 of 37 MX909A PRELIMINARY INFORMATION 6 Performance Specification 6.1 Electrical Performance 6.1.1 Absolute Maximum Ratings Exceeding these maximum ratings can result in damage to the device. Operation of the device outside the operating limits is not implied General Min. Max. Units -0.3 7.0 V -0.3 VDD + 0.3 V VDD -30 30 mA VSS -30 30 mA Any other pin -20 20 mA 800 mW 13 mW/°C above 25°C Supply (VDD - VSS) Voltage on any pin to VSS Current DW, LH, P Package Total Allowable Power Dissipation at TAMB = 25°C Derating above 25°C Storage Temperature -55 125 °C Operating Temperature -40 85 °C 550 mW 9 mW/°C above 25°C DS Package Total Allowable Power Dissipation at TAMB = 25°C Derating above 25°C Storage Temperature -55 125 °C Operating Temperature -40 85 °C 6.1.2 Operating Limits Correct operation of the device outside these limits is not implied. Notes Min. Max. Units Supply (VDD - VSS) 3.0 5.5 V Temperature -40 85 °C Xtal Frequency 1.0 10.0 MHz ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 33 of 37 MX909A PRELIMINARY INFORMATION 6.1.3 Operating Characteristics For the following conditions unless otherwise specified: Xtal Frequency = 4.096MHz, Bit Rate = 8k bits/sec, Noise Bandwidth = Bit Rate, VDD = 5.0V @ TAMB = 25°C Notes Typ. Max. Units 1 2.2 3.3 mA 1 0.4 0.6 mA IDD (not powersaved) 1 3 4.5 mA IDD (powersaved) 1 0.9 1.4 mA AC Parameters Tx Output TXOUT Impedance (not powersaved) 2 1.0 2.5 kΩ TXOUT Impedance (powersaved) 2 300 Signal Level 3 1.0 1.1 kΩ VP-P 4 6 bits DC Parameters IDD (not powersaved) (VDD = 3.3V) IDD (powersaved) (VDD = 3.3V) Tx Data Delay Rx Input RXIN Impedance (at 100Hz) RXIN Amp Voltage Gain (input = 1mVRMS at 100Hz) Input Signal Level 0.9 4 MΩ V/V 10.0 500 5 Rx Data Delay Xtal/Clock Input 'High' Pulse Width 'Low' Pulse Width Input Impedance (at 100Hz) Gain (input = 1 mVRMS at 100Hz) Min. 0.7 6 7 7 1.0 1.3 3.5 VP-P bits 40 40 10.0 ns ns 20 MΩ dB 70% VDD µC Interface Input Logic "1" Level 8, 9 Input Logic "0" Level 8, 9 Input Leakage Current (VIN = 0 to VDD) 8, 9 5.0 Input Capacitance Output Logic "1" Level (lOH = 120µA) 8, 9 9 90% Output Logic "0" Level (lOL = 360µA) 9,10 10% VDD 10 10 µA 'Off' State Leakage Current (VOUT = VDD) 6.1.3.1 30% VDD 5.0 µA 10.0 pF VDD Operating Characteristics Notes: 1. Not including any current drawn from the modem pins by external circuitry. 2. Small signal impedance 3. For "1111000011110000..." bit sequence (output level is proportional to VDD). 4. Measured between issuing first task after idle and the center of the first bit at TXOUT see Figure 7) 5. For optimum performance, measured at RXAMPOUT pin, for a "...11110000..." bit sequence 6. Measured between center of last bit of an Rx single byte or Frame Sync at RXIN and an IRQ the host µC. 7. Timing for an external input to the CLOCK/XTAL pin. 8. WR , RD , CS , A0 and A1 pins. 9. D0 - D7 pins. interrupt to 10. IRQ pin. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump 6.1.4 Page 34 of 37 MX909A PRELIMINARY INFORMATION Timing For the following conditions unless otherwise specified: Xtal Frequency = 4.096MHz, VDD = 5.0V @ TAMB = 25°C µC Parallel Interface Timings ref (Figure 20) tACSL Address valid to CS low time 6.1.4.1 Notes Min. Typ. Max. Units 0 ns tAH Address hold time 0 ns tCSH CS hold time 0 ns tCSHI CS high time 6 clock cycles tCSRWL CS to WR or RD low time 0 ns tDHR Read data hold time 0 ns tDHW Write data hold time 0 ns tDSW 1 Write data setup time 90 ns tRHCSL RD high to CS low time (write) 0 ns tRACL Read access time from CS low 2 175 ns tRARL Read access time from RD low 2 145 ns tRL RD low time tRX RD high to D0-D7 3-state time tWHCSL WR high to CS low time (read) tWL WR low time 200 ns 50 ns 0 ns 200 ns Timing Notes: 1. Xtal/Clock cycles at the XTAL/CLOCK pin. 2. With 30pF max to VSS on D0 - D7 pins. ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 35 of 37 MX909A PRELIMINARY INFORMATION WRITE CYCLE (DATA TO MODEM) tAH ADDRESS A0, A1 ADDRESS VALID tACSL tCSH tCSHI CS tWL WR tCSRWL tRHCSL RD tDSW tDHW DATA D0 to D7 (1 byte) DATA VALID READ CYCLE (DATA FROM MODEM) tAH ADDRESS A0, A1 ADDRESS VALID tACSL tCSH CS tCSHI tWHCSL WR tCSRWL tRL RD tRX tRARL DATA D0 to D7 (1 byte) tDHR DATA VALID tRACL Figure 20: µC Parallel Interface Timing Diagram ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 36 of 37 MX909A PRELIMINARY INFORMATION 10 Block Error Rate with FEC -1 10 -2 ERROR RATE 10 Bit Error Rate No FEC -3 10 -4 10 -5 10 -6 10 5 4 6 7 8 10 9 11 12 SIGNAL-TO-NOISE RATIO (dB) NOTE: A block is deemed to be "In Error" if the CRC fails Figure 21: Typical Bit Error Rate (noise in bit rate bandwidth) 6.2 Packaging Package Tolerances A Z B ALTERNATIVE PIN LOCATION MARKING E W L T PIN 1 X Y C K H J P DIM. A B C E H J K L P T W X Y Z MIN. TYP. MAX. 0.613 (15.57) 0.299 (7.59) 0.105 (2.67) 0.419 (10.64) 0.020 (0.51) 0.020 (0.51) 0.046 (1.17) 0.597 (15.16) 0.286 (7.26) 0.093 (2.36) 0.390 (9.90) 0.003 (0.08) 0.013 (0.33) 0.036 (0.91) 0.050 (1.27) 0.016 (0.41) 0.050 (1.27) 0.0125 (0.32) 0.009 (0.23) 45° 10° 0° 7° 5° 5° NOTE : All dimensions in inches (mm.) Angles are in degrees Figure 22: 24-pin SOIC Mechanical Outline : Order as part no. MX909ADW ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. GMSK Modem Data Pump Page 37 of 37 MX909A PRELIMINARY INFORMATION Package Tolerances A Z DIM. A B C E H J L P T X Y Z E B L T PIN 1 X Y H C P J MIN. TYP. MAX. 0.318 (8.07) 0.328 (8.33) 0.205 (5.20) 0.213 (5.39) 0.066 (1.67) 0.079 (2.00) 0.312 (7.90) 0.301 (7.65) 0.002 (0.05) 0.008 (0.21) 0.010 (0.25) 0.015 (0.38) 0.022 (0.55) 0.037 (0.95) 0.026 (0.65) 0.005 (0.13) 0.009 (0.22) 0° 8° 7° 9° 4° 10° NOTE : All dimensions in inches (mm.) Angles are in degrees Figure 23: 24-PIN SSOP Mechanical Outline: Order as part no. MX909ADS E B C Package Tolerances K DIM. A B C D E F G H J K P T W Y Y DA J W W H T PIN 1 P G MIN. TYP. MAX. 0.409 (10.40) 0.380 (9.61) 0.409 (10.40) 0.380 (9.61) 0.146 (3.70) 0.128 (3.25) 0.417 (10.60) 0.435 (11.05) 0.435 (11.05) 0.417 (10.60) 0.250 (6.35) 0.250 (6.35) 0.023 (0.58) 0.018 (0.45) 0.022 (0.55) 0.047 (1.19) 0.048 (1.22) 0.051 (1.30) 0.049 (1.24) 0.009 (0.22) 0.006 (0.152) 30° 45° 6° NOTE : All dimensions in inches (mm.) Angles are in degrees F Figure 24: 24-pin PLCC Mechanical Outline: Order as part no. MX909ALH A Package Tolerances B E E1 Y T PIN1 K H L C J J1 P DIM. A B C E E1 H J J1 K L P T Y MIN. TYP. MAX. 1.270 (32.26) 1.200 (30.48) 0.555 (14.04) 0.500 (12.70) 0.151 (3.84) 0.220 (5.59) 0.600 (15.24) 0.670 (17.02) 0.590 (14.99) 0.625 (15.88) 0.015 (0.38) 0.045 (1.14) 0.015 (0.38) 0.023 (0.58) 0.040 (1.02) 0.065 (1.65) 0.066 (1.67) 0.074 (1.88) 0.121 (3.07) 0.160 (4.05) 0.100 (2.54) 0.008 (0.20) 0.015 (0.38) 7° NOTE : All dimensions in inches (mm.) Angles are in degrees Figure 25: 24-pin PDIP Mechanical Outline: Order as part no. MX909AP ¤2001 MX-COM, Inc. www.mxcom.com Tel: 800 638 5577 336 744 5050 Fax: 336 744 5054 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA Doc. # 20480134.005 All trademarks and service marks are held by their respective companies. CML Microcircuits COMMUNICATION SEMICONDUCTORS CML Product Data In the process of creating a more global image, the three standard product semiconductor companies of CML Microsystems Plc (Consumer Microcircuits Limited (UK), MX-COM, Inc (USA) and CML Microcircuits (Singapore) Pte Ltd) have undergone name changes and, whilst maintaining their separate new names (CML Microcircuits (UK) Ltd, CML Microcircuits (USA) Inc and CML Microcircuits (Singapore) Pte Ltd), now operate under the single title CML Microcircuits. These companies are all 100% owned operating companies of the CML Microsystems Plc Group and these changes are purely changes of name and do not change any underlying legal entities and hence will have no effect on any agreements or contacts currently in force. CML Microcircuits Product Prefix Codes Until the latter part of 1996, the differentiator between products manufactured and sold from MXCOM, Inc. and Consumer Microcircuits Limited were denoted by the prefixes MX and FX respectively. These products use the same silicon etc. and today still carry the same prefixes. In the latter part of 1996, both companies adopted the common prefix: CMX. This notification is relevant product information to which it is attached. CML Microcircuits (USA) [formerly MX-COM, Inc.] Product Textual Marking On CML Microcircuits (USA) products, the ‘MX-COM’ textual logo is being replaced by a ‘CML’ textual logo. Company contact information is as below: CML Microcircuits (UK)Ltd CML Microcircuits (USA) Inc. CML Microcircuits (Singapore)PteLtd COMMUNICATION SEMICONDUCTORS COMMUNICATION SEMICONDUCTORS COMMUNICATION SEMICONDUCTORS Oval Park, Langford, Maldon, Essex, CM9 6WG, England Tel: +44 (0)1621 875500 Fax: +44 (0)1621 875600 [email protected] www.cmlmicro.com 4800 Bethania Station Road, Winston-Salem, NC 27105, USA Tel: +1 336 744 5050, 0800 638 5577 Fax: +1 336 744 5054 [email protected] www.cmlmicro.com No 2 Kallang Pudding Road, 09-05/ 06 Mactech Industrial Building, Singapore 349307 Tel: +65 7450426 Fax: +65 7452917 [email protected] www.cmlmicro.com D/CML (D)/2 May 2002