DATA BULLETIN
MX839
Features
x 4 input intelligent 10 bit A/D monitoring subsystem 4 High and 4 Low Comparators External IRQ Generator Free Running Operation x Three 8/10 bit DACs x Two Variable Attenuators x Selectable A/D Clock Frequencies x Full Control via 4-wire Serial Interface x Low Power 3.0 Operation
Digitally Controlled Analog I/O Processor
PRELIMINARY INFORMATION Applications
x PCS, Cellular, LMR, Wireless Transceivers, and General Purpose x Monitor and Control: RSSI, Battery State, Temperature, VSWR, and Error Voltages x Digital Trim and Calibration: VCOs, TCXO, Power Output, Bias, Current, IF Gain, Deviation, Modulation Depth, and Baseband Gain
RECEIVER
RSSI
VSWR
RF TRANSMITTER
RADIO BATTERY STATE BATTERY SYSTEM
4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare
Clock Osc & Dividers
3x 8/10 bit DAC
TX POWER REF. OFFSET TRIM VCO TRIM
MX839
2x Variable Attenuator
MOD 1 OUT MOD 2 OUT MOD 1 IN MOD 2 IN TRANSMITTER MODULATOR
TEMPERATURE
C-BUS Interface & Control Logic
µC C-BUS SERIAL BUS 0 : 3
The MX839 is a low power CMOS µC peripheral device which provides digitally controlled calibration, trimming, and monitoring functions for PCS, cellular, LMR, wireless transceivers, and general purpose applications. Featuring a four input intelligent 10 bit A/D monitoring subsystem, an interrupt generator, three 8/10 bit DACs, and two variable attenuator functions, the MX839 automatically monitors, produces, and trims up to nine analog signals via a simple four wire serial control bus. The free running A/D intelligent monitoring subsystem includes independent high and low limit comparators for each of four analog input signals which can be configured to generate external µC interrupts. The MX839’s high level of integration reduces end product parts count, component size, and software complexity. MX839 digital trimming functions also reduce manufacturing costs by eliminating manual trimming operations. Featuring an operating range of 3.0V to 5.5V the MX839 is available in 24-pin SSOP (MX839DS), 24-pin SOIC (MX839DW), and 24-pin PDIP (MX839P) packages.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
2
MX839 PRELIMINARY INFORMATION
CONTENTS
Section Page
1 Block Diagram ................................................................................................................................ 3 2 Signal List ....................................................................................................................................... 4 3 External Components..................................................................................................................... 5 4 General Description ....................................................................................................................... 6
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 Variable Attenuators............................................................................................................................... 6 Digital to Analog Converters................................................................................................................... 6 Analog to Digital Converter and A/D Clock Generator ........................................................................... 6 Magnitude Comparators and Interrupt Request ..................................................................................... 7 Software Description .............................................................................................................................. 7 Read Only Registers (8-Bit and 16-Bit) .................................................................................................. 9 Write Only Register Description ............................................................................................................. 9 Read Only Register Description ............................................................................................................ 13
5 Application ..................................................................................................................................... 13
5.1 C-Bus Clock .......................................................................................................................................... 13
6 Performance Specification ........................................................................................................... 14
6.1 6.2 Electrical Performance .......................................................................................................................... 14 Packaging.............................................................................................................................................. 19
MXxCOM, Inc. reserves the right to change specifications at any time and without notice.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
3
MX839 PRELIMINARY INFORMATION
1 Block Diagram
MOD1 IN
MUTE1
0 to 12dB x 0.4dB Steps
MOD1OUT
MUTE2
MOD2 IN
0 to 16dB x 0.2dB Steps
MOD2OUT
HIGH COMPARATOR A/D REG1 LOW COMPARATOR A/DIN1 A/DIN2 A/DIN3 A/DIN4 4:1 MUX A/D 10 bit HIGH COMPARATOR A/D REG2 LOW COMPARATOR HIGH COMPARATOR A/D REG3 LOW COMPARATOR HIGH COMPARATOR A/D REG4 LOW COMPARATOR
DACOUT1 DAC1 8/10 bit DACOUT2 DAC2 8/10 bit DACOUT3 DAC3 8/10 bit
1:4 MUX
ADC COMP IRQ REPLY DATA COMMAND DATA CS SERIAL CLOCK XTAL/CLOCK XTAL 4-wire SERIAL INTERFACE AND LOGIC CONTROL CLOCK OSCILLATOR AND DIVIDERS AVDD VSS VBIAS DVDD DVDD AVDD
Figure 1: Block Diagram
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
4
MX839 PRELIMINARY INFORMATION
2 Signal List
Pin No. 1 2 3 4 Name XTAL XTAL/CLOCK SERIAL CLOCK COMMAND DATA Type output input input input Description The output of the on-chip oscillator inverter. The input to the on-chip oscillator inverter, for external Xtal circuit or clock. The 'C-BUS' serial clock input. This clock, produced by the µC, is used for transfer timing of commands and data to and from the device. See Figure 5. The 'C-BUS' serial data input from the µC. Data is loaded into this device in 8-bit bytes, MSB (B7) first, and LSB (B0) last, synchronized to the SERIAL CLOCK. See Figure 5. The 'C-BUS' serial data output to the µC. The transmission of REPLY DATA bytes is synchronized to the SERIAL CLOCK under the control of the CS input. This tri-state output is held at high impedance when not sending data to the µC. See Figure 5. The 'C-BUS' data loading control function. This input is provided by the µC. Data transfer sequences are initiated, completed or aborted by the CS signal. See Figure 5. This output indicates an interrupt condition to the µC by going to a logic '0'. This is a 'wire-ORable' output, enabling the connection of up to 8 peripherals to 1 interrupt port on the µC. This pin has a low impedance pulldown to logic '0' when active and a high-impedance when inactive. An external pullup resistor is required. The conditions that cause interrupts are indicated in the IRQ FLAG register and are effective if not disabled. Analog to digital converter input 1 (A/D1) Analog to digital converter input 2 (A/D2) Analog to digital converter input 3 (A/D3) Analog to digital converter input 4 (A/D4) Negative supply (ground) for both analog and digital supplies. An analog bias line for the internal circuitry, held at AVDD/2. This pin must be bypassed by a capacitor mounted close to the device pins. No internal connection. Do not make any connection to this pin. output output output power input input output output power Digital to analog converter No. 1 output (DAC1) Digital to analog converter No. 2 output (DAC2) Digital to analog converter No. 3 output (DAC3) No internal connection. Do not make any connection to this pin. Positive analog supply. Analog levels and voltages are dependent upon this supply. This pin should be bypassed to VSS by a capacitor. Input to MOD1 variable attenuator. Input to MOD2 variable attenuator. Output of MOD1 variable attenuator. Output of MOD2 variable attenuator. Positive digital supply. Digital levels and voltages are dependent upon this supply. This pin should be bypassed to VSS by a capacitor.
5
REPLY DATA
output
6
CS
input
7
IRQ
output
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
A/DIN1 A/DIN2 A/DIN3 A/DIN4 VSS VBIAS N/C DACOUT1 DACOUT2 DACOUT3 N/C AVDD MOD1 IN MOD2 IN MOD1 MOD2 DVDD
input input input input power output
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
5
MX839 PRELIMINARY INFORMATION
3 External Components
XTAL X1 R1 XTAL/CLOCK C2 C1
C-BUS INTERFACE
XTAL XTAL/CLOCK SERIAL CLOCK COMMAND DATA REPLY DATA CS IRQ ADCIN1 ADCIN2 ADCIN3 ADCIN4 VSS
1 2 3 4 5 6 7 8 9 10 11 12
MX839
R2
24 23 22 21 20 19 18 17 16 15 14 13
DVDD MOD2 OUT MOD1 OUT MOD2 IN MOD1 IN AVDD N/C DACOUT3 DACOUT2 DACOUT1 N/C VBIAS
DVDD C5 R3 AVDD
C4
C6
DVDD
C3
Figure 2: Recommended External Components R1 R2 R3 C1 C2 C3 Note 1 1M: 22k: 10: 22pF 22pF 0.1µF ±5% ±10% ±10% ±20% ±20% ±20% X1 Note 2, 3 ±100ppm C4 C5 C6 Note 1 Note 1 0.1µF 0.1µF 10.0µF ±20% ±20% ±20%
Table 1: Recommended External Components Notes: 1. These values should be determined in regard to the amount of supply filtering required for D/A outputs. 2. If an external clock is to be used, then it should be connected to Pin 2 and the components C1, C2, R1, and X1 omitted. The ADC clock frequency is derived from the crystal or external clock by means of internal programmable dividers. See Section 6 for details of crystal or external clock frequency range. 3. For best results, a crystal oscillator design should drive the clock inverter input with signal levels of at least 40% of VDD, peak to peak. Tuning fork crystals generally cannot meet this requirement. To obtain crystal oscillator design assistance, consult your crystal manufacturer.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
6
MX839 PRELIMINARY INFORMATION
4
General Description
The device comprises four groups of related functions: variable attenuators, digital to analog converters, a multiplexed analog to digital converter with multiplexer, clock generator and four 8-bit magnitude comparators with variable reference levels. These functions are all controlled by the 'C-BUS' serial interface and are described below:
4.1 4.2
Variable Attenuators Digital to Analog Converters
The two variable attenuators have a range of 0 to -12dB and 0 to -6dB respectively and may be controlled independently.
Three DACs are provided with default resolutions of 8 bits, which are defined at the initial chip reset. In this mode the 'C-BUS' data is transferred in a single byte. An option is provided to define any one or more of the DAC resolutions to be 10 bits, then the DAC requires the transfer of two 'C-BUS' data bytes. The upper and lower DAC reference voltages are defined internally as AVDD and VSS respectively. The output voltage is expressed as: VOUT = AVDD x (DATA / 2n) [Volts] Where, n is the DAC resolution (8 or 10 bits) and DATA is the decimal value of the input code. For example: n = 8 and binary code = 11111111 therefore DATA = 255 VOUT = AVDD x (255 / 256) [Volts] Any one of the three DAC input latches might be loaded by sending an address/command byte followed by one or two data bytes to the 'C-BUS' interface. The data is then latched and the static voltage is updated at the appropriate output. When a DAC is disabled, its output is defined as open-circuit.
4.3
Analog to Digital Converter and A/D Clock Generator
A single successive approximation A/D is provided with four multiplexed inputs. After a general reset command $01, the A/D converter subsystem is disabled. To start conversions the Clock Control ($D0) and A/D control ($D7) registers must be written (refer to Tables 2,6, and 8). Please note that A/D channel 1 must be active for any other channel to work. Also note that A/D control register bit 5 ( READ ) should be set low prior to issuing a ‘READ A/D DATA x’ command to disable conversions so the data being read does not change during the read which could otherwise result in erroneous data being read. To re-enable conversions the A/D control register bit 5 ( READ ) bit must be set back high. The internal A/D clock frequency (fA/D_CLK) is generated with a programmable clock generator. Users have flexible control of this clock signal via the Clock Control Register ($D0), DIVIDER set per Table 6, and the choice of an external system clock signal or a dedicated crystal. fA/D_CLK should be chosen not to exceed 1MHz. Since the typical application is for monitoring slowly changing control voltages, a Sample and Hold circuit is not included at the input of the A/D. Thus, for the analog to digital conversion to be accurate, the input signal should not change significantly during the conversion time. For ‘n-bit’ accuracy (with a maximum error of 1LSB) the maximum signal ‘linear rate of change,’ ‘S,’ is defined by: S= AVDD 2
n
f A/D_CLK
1000 (n + 2)
[mV/PS]
where: n is the number of bits of accuracy with a maximum error of 1 LSB where: f A/D_CLK = f XTAL , DIVIDER is selected per Table 6. DIVIDER
For Example: The most significant bits (n) of accuracy. For (n = 6) bit accuracy with AVDD=5V and fA/D_CLK = 1MHz S = 9.77 [mV/PS] For (n = 8) bit accuracy with AVDD=5V and fA/D_CLK = 1MHz S = 1.95 [mV/PS] For (n = 10) bit accuracy with AVDD=3.3V and fA/D_CLK = 1MHz S = 0.27 [mV/PS] The input signal should therefore be band limited to ensure the maximum signal ‘linear rate of change’ is not exceeded for the desired accuracy.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
7
MX839 PRELIMINARY INFORMATION
After enabling conversions the user must allow time for all enabled channels to be digitized before reading the results via the ‘C-BUS’. The minimum required time to wait is: TCONV_MAX = (10 + 2) ' Number of Enabled Inputs' f A/D_CLK [Seconds]
Upon disabling conversions the data for the most recent conversion completed for each channel will be available via the ‘C-BUS’ commands ‘READ A/D DATA x’ (addresses $DC, $DD, $DE, $DF) for input channels 1 through 4 respectively. Do not forget to re-enable conversions by setting A/D control register bit 5, the READ bit, back high after reading the desired A/D results. Note that the Magnitude Comparators (see section 4.4) can be configured to monitor the A/D channel data in order to minimize the software burden of continuously reading the A/D channel data. It is not recommended to issue ‘READ A/D DATA x’ commands without first setting A/D control register bit 5, the READ bit, low. An Example C-BUS transaction to do a conversion and read of A/D Channel 1:
HEX ADDRESS/ COMMAND $01 $D0 $D7 $D7 $DC $D7 WRITE DATA BYTE 1 N/A $03 $70 $50 N/A $70 READ DATA BYTE 1 N/A N/A N/A N/A xxxxxxxx N/A READ DATA BYTE 2 N/A N/A N/A N/A 000000xx N/A Reset Device Set fA/D_CLK DIVIDER = 4 Enable conversion on A/D Channel 1 Disable conversions after waiting TCONV_MAX Read A/D Channel 1 Data Re-enable conversion on A/D Channel 1 COMMENT
4.4
Magnitude Comparators and Interrupt Request
High and low digital comparator reference levels are provided for the four digital magnitude comparators via the 'C-BUS' interface. The digital input to the comparators is provided by the most significant 8 data bits of each A/D channel When the sampled data falls outside the high or low digital comparator reference levels the status register is updated and the IRQ pin is pulled low. When a reference level is set to '0', its IRQ is disabled.
4.5
4.5.1
Software Description
Address/Commands
Instructions and Data are transferred via the 'C-BUS' in accordance with the timing information provided in Figure 5. Instruction and data transactions to and from the FX839 consist of an Address/Command byte followed by either: (i) a control or DAC data write (1 or 2 bytes) or, (ii) a status or A/D data read (1 or 2 bytes)
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
8
MX839 PRELIMINARY INFORMATION
4.5.2
Write Only Register (8-Bit and 16-Bit)
REGISTER NAME BIT 7 (D7) BIT 6 (D6) BIT 5 (D5) BIT 4 (D4) BIT 3 (D3) BIT 2 (D2) BIT 1 (D1) BIT 0 (D0)
HEX ADDRESS/ COMMAN D $01 $D0 $D2
RESET CLOCK CONTROL VARIABLE ATTENUATOR (1) VARIABLE ATTENUATOR (2)
N/A 0 0 0 NBIT DAC1 BIT 7 0 BIT 7 0 BIT 7 0 0
N/A 0 0 0 NBIT DAC2 BIT 6 0 BIT 6 0 BIT 6 0 1
N/A 0 MOD1 ENABLE MOD2 ENABLE NBIT DAC3 BIT 5 0 BIT 5 0 BIT 5 0
N/A 0 BIT 4 BIT 4 0 BIT 4 0 BIT 4 0 BIT 4 0 A/DIN1 ACTIVE
N/A 0 BIT 3 BIT 3 DAC1 ENABLE BIT 3 0 BIT 3 0 BIT 3 0 A/DIN2 ACTIVE
N/A BIT 2 MOD1 BIT 2 MOD2 BIT 2 DAC2 ENABLE BIT 2 0 BIT 2 0 BIT 2 0 A/DIN3 ACTIVE
N/A DIVIDER BIT 1 BIT 1 BIT 1 DAC3 ENABLE BIT 1 BIT 9 BIT 1 BIT 9 BIT 1 BIT 9 A/DIN4 ACTIVE
N/A BIT 0 BIT 0 BIT 0 0 BIT 0 BIT 8 BIT 0 BIT 8 BIT 0 BIT 8 0
$D3 $D4
DAC CONTROL DAC1 DATA (1) *See Note 1 (2)
$D5
DAC2 DATA (1) *See Note 1 (2)
$D6
DAC3 DATA (1) *See Note 1 (2)
$D7
A/D CONTROL MAG COMP ONE
READ
BIT 5 BIT 5 BIT 5 BIT 5 BIT 5 BIT 5 BIT 5 BIT 5
MAGNITUDE COMPARATOR UPPER LEVEL BIT 7 BIT 7 BIT 7 BIT 7 BIT 7 BIT 7 BIT 7 BIT 7 BIT 6 BIT 6 BIT 6 BIT 6 BIT 6 BIT 6 BIT 6 BIT 6 BIT 4 BIT 4 BIT 4 BIT 4 BIT 4 BIT 4 BIT 4 BIT 4 BIT 3 BIT 3 BIT 3 BIT 3 BIT 3 BIT 3 BIT 3 BIT 3 BIT 2 BIT 2 BIT 2 BIT 2 BIT 2 BIT 2 BIT 2 BIT 2 BIT 1 BIT 1 BIT 1 BIT 1 BIT 1 BIT 1 BIT 1 BIT 1 BIT 0 BIT 0 BIT 0 BIT 0 BIT 0 BIT 0 BIT 0 BIT 0 MAGNITUDE COMPARATOR LOWER LEVEL MAGNITUDE COMPARATOR UPPER LEVEL MAGNITUDE COMPARATOR LOWER LEVEL MAGNITUDE COMPARATOR UPPER LEVEL MAGNITUDE COMPARATOR LOWER LEVEL MAGNITUDE COMPARATOR UPPER LEVEL MAGNITUDE COMPARATOR LOWER LEVEL
$D8
LEVELS (1) MAG COMP ONE LEVELS (2) MAG COMP TWO
$D9
LEVELS (1) MAG COMP TWO LEVELS (2) MAG COMP THREE
$DA
LEVELS (1) MAG COMP THREE LEVELS (2) MAG COMP FOUR
$DB
LEVELS (1) MAG COMP FOUR LEVELS (2)
Table 2: Write Only Register (8-Bit and 16-Bit) Note 1. A second byte is expected by the 'C-BUS' interface only when the 'NBIT DACn' bit of the 'DAC Control Register' is set high. Otherwise, the data transfer is a single byte (Bit 7 to Bit 0).
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
9
MX839 PRELIMINARY INFORMATION
4.6
Read Only Registers (8-Bit and 16-Bit)
HEX ADDRESS/ COMMAND $D1 $DC REGISTER NAME IRQ FLAGS A/D DATA1 (1) (2) $DD A/D DATA2 (1) (2) $DE A/D DATA3 (1) BIT 7 (D7) HIRQF 4 BIT 7 0 BIT 7 0 BIT 7 0 BIT 7 0 BIT 6 (D6) LIRQF 4 BIT 6 0 BIT 6 0 BIT 6 0 BIT 6 0 BIT 5 (D5) HIRQF 3 BIT 5 0 BIT 5 0 BIT 5 0 BIT 5 0 BIT 4 (D4) LIRQF 3 BIT 4 0 BIT 4 0 BIT 4 0 BIT 4 0 BIT 3 (D3) HIRQF 2 BIT 3 0 BIT 3 0 BIT 3 0 BIT 3 0 BIT 2 (D2) LIRQF 2 BIT 2 0 BIT 2 0 BIT 2 0 BIT 2 0 BIT 1 (D1) HIRQF 1 BIT 1 BIT 9 BIT 1 BIT 9 BIT 1 BIT 9 BIT 1 BIT 9 BIT 0 (D0) LIRQF 1 BIT 0 BIT 8 BIT 0 BIT 8 BIT 0 BIT 8 BIT 0 BIT 8
(2)
$DF A/D DATA4 (1)
(2)
Table 3: Read Only Registers (8-Bit and 16-Bit)
4.7
4.7.1
Write Only Register Description
RESET Register (Hex Address $01)
The reset command has no data attached to it. It sets the device registers into the specific states listed below:
REGISTER NAME CLOCK CONTROL DAC CONTROL DAC1 DATA1 DAC2 DATA1 DAC3 DATA1 A/D CONTROL VARIABLE ATTENUATOR MAG COMP ONE LEVELS MAG COMP TWO LEVELS MAG COMP THREE LEVELS MAG COMP FOUR LEVELS (1) (2) (1) (2) (1) (2) (1) (2) (1) (2) BIT 7 (D7) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 6 (D6) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 5 (D5) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 4 (D4) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 3 (D3) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 2 (D2) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 1 (D1) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIT 0 (D0) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Table 4: RESET Register (Hex Address $01) Note 1. Default resolution is defined as 8-Bits.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
10
MX839 PRELIMINARY INFORMATION
4.7.2
CLOCK CONTROL Register (Hex Address $D0)
This register controls the A/D clock divide ratio: Bits 7 to 3 DIVIDER (Bit 2 - Bit 0) Reserved for future use. These bits should be set to '0'. The Xtal input clock divide ratio, which sets the A/D sample clock frequency, is defined in the following table. Table 5: CLOCK CONTROL Register (Hex Address $D0) Bit 2 0 0 0 0 1 1 1 1 Bit 1 0 0 1 1 0 0 1 1 Bit 0 0 1 0 1 0 1 0 1 Function Powersave y1 y2 y4 y8 y16 y32 y64
Table 6: DIVIDER (Bit 2 - Bit 0)
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
11
MX839 PRELIMINARY INFORMATION
4.7.3
VARIABLE ATTENUATOR Register (Hex address $D2)
This is a 16-bit register. Byte (1) is sent first. Bits 0 - 5 of the first byte in this register are used to enable and set the attenuation of the Modulator 1 amplifier. Bits 0 - 5 of the second byte in this register are used to enable and set the attenuation of the Modulator 2 amplifier. See Table 7.
5 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 X 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 X 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 X 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 X 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Mod. 1 Attenuation Disabled (VBIAS) >40dB 12.0dB 11.6dB 11.2dB 10.8dB 10.4dB 10.0dB 9.6dB 9.2dB 8.8dB 8.4dB 8.0dB 7.6dB 7.2dB 6.8dB 6.4dB 6.0dB 5.6dB 5.2dB 4.8dB 4.4dB 4.0dB 3.6dB 3.2dB 2.8dB 2.4dB 2.0dB 1.6dB 1.2dB 0.8dB 0.4dB 0dB 5 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 X 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 X 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 X 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 X 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Mod. 2 Attenuation Disabled (VBIAS) >40dB 6.0dB 5.8dB 5.6dB 5.4dB 5.2dB 5.0dB 4.8dB 4.6dB 4.4dB 4.2dB 4.0dB 3.8dB 3.6dB 3.4dB 3.2dB 3.0dB 2.8dB 2.6dB 2.4dB 2.2dB 2.0dB 1.8dB 1.6dB 1.4dB 1.2dB 1.0dB 0.8dB 0.6dB 0.4dB 0.2dB 0dB
X = don't care MOD1 ENABLE (Bit 5, first byte) MOD2 ENABLE (Bit 5, second byte) (Bits 7 and 6, first and second bytes) When this bit is '1' the MOD1 attenuator is enabled. When this bit is '0' the MOD1 attenuator is disabled (i.e. powersaved). When this bit is '1' the MOD2 attenuator is enabled. When this bit is '0' the MOD2 attenuator is disabled (i.e. powersaved). Reserved for future use. These should be set to '0'.
Table 7: VARIABLE ATTENUATOR Register (Hex address $D2)
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
12
MX839 PRELIMINARY INFORMATION
4.7.4
DAC CONTROL Register (Hex address $D3)
This register controls the resolution and the number of enabled DAC outputs: NBIT DAC1 (Bit 7) NBIT DAC2 (Bit 6) NBIT DAC3 (Bit 5) (Bit 4) DAC1 ENABLE (Bit 3) DAC2 ENABLE (Bit 2) DAC3 ENABLE (Bit 1) (Bit 0) 4.7.5 4.7.6 4.7.7 These bits define the input resolutions for each of the four DACs. When 'NBIT DACn' is '0' the resolution of DACn is 8-Bits. When 'NBIT DACn is '1' the resolution of DACn is 10-Bits. Reserved for future use. This bit should be set to '0'. These bits allow any one or more of the three DACs to be powered up. When '0' the DACn is powered down and the output is high impedance. When '1' the DAC is powered on and the output voltage is defined by the DAC Data Registers. Reserved for future use. This bit should be set to '0'. DAC1 DATA Register (Hex Address $D4) DAC2 DATA Register (Hex Address $D5) DAC3 DATA Register (Hex Address $D6)
The data in these three registers sets the analog voltage at the output of DAC1, DAC2 and DAC3. This data will consist of one or two bytes depending on the defined input resolution that is set by bits 7, 6 and 5 of the DAC Control Register. When operating with 10-bit resolution Bit 7 to Bit 2 of the DACn DATA Register second data byte must be set to "0". 4.7.8 A/D CONTROL Register (Hex Address $D7) This register sets which channels are active and enables conversion mode or read mode. (Bit 7) (Bit 6) READ (Bit 5) A/D1 ACTIVE (Bit 4) A/D2 ACTIVE (Bit 3) A/D3 ACTIVE (Bit 2) A/D4 ACTIVE (Bit 1) (Bit 0) Reserved for future use. This bit should be set to '0'. Reserved for future use. This bit should be set to ‘1’. When this bit is set to ‘1’ all active channels are continuously sampled and the latest converted data stored for each channel. When this bit is set to ‘0’ all conversions are stopped so that they may be read. These bits allow any one or more of the four A/D input channels to be enabled. When '0' the A/DINn input voltage is not converted. When '1' the A/DINn input is defined as active and the input voltage is converted. A/D1 must be active for any other channel to be active. Reserved for future use. This bit should be set to ‘0’. Table 8: A/D CONTROL Register (Hex Address $D7) 4.7.9 MAG COMP ONE LEVELS (Hex Address $D8)
4.7.10 MAG COMP TWO LEVELS (Hex Address $D9) 4.7.11 MAG COMP THREE LEVELS (Hex Address $DA) 4.7.12 MAG COMP FOUR LEVELS (Hex Address $DB) Each address controls the relevant numbered A/D magnitude comparator. The first byte, transmitted with the most significant bit first, sets the magnitude comparator upper reference level and the second byte sets the magnitude comparator lower reference level. When a reference level's value is set to '0' its IRQ is disabled. In general, if a reference level’s value is R (unsigned decimal value of data byte) VREF = AVDD × R 256
[ Volts]
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
13
MX839 PRELIMINARY INFORMATION
4.8
4.8.1
Read Only Register Description
IRQ FLAGS Register (Hex Address $D1) These bits are set if the relevant digital magnitude comparator input exceeds its upper reference level. These bits are reset to '0' immediately after reading the IRQ FLAGS register. When any of these bits are set, an interrupt will be generated if the relevant reference level is not zero. These bits are set if the relevant digital magnitude comparator input falls below its lower reference level. These bits are reset to '0' immediately after reading the IRQ FLAGS register. When any of these bits are set, an interrupt will be generated if the relevant reference level is not zero.
HIRQF1 (Bit 1) HIRQF2 (Bit 3) HIRQF3 (Bit 5) HIRQF4 (Bit 7) LIRQF1 (Bit 0) LIRQF2 (Bit 2) LIRQF3 (Bit 4) LIRQF4 (Bit 6)
Table 9: IRQ FLAGS Register (Hex Address $D1) 4.8.2 4.8.3 4.8.4 4.8.5 A/D DATA1 Register (Hex Address $DC) A/D DATA2 Register (Hex Address $DD) A/D DATA3 Register (Hex Address $DE) A/D DATA4 Register (Hex Address $DF)
This data will consist of two bytes each. Bit 7 to Bit 2 of the second data byte will be set to '0'. Bits 0-7 of the first byte are the lease significant 8 bits while Bits 0-1 of the second byte are the most significant 2 bits of the 10 bit conversion. The analog input (VIN) is converted to a 10-bit digital word (w) according to: w= The bits of word (w) are returned in 2 bytes as follows: 7 Return Byte 1 Return Byte 2 w7 0 6 w6 0 5 w5 0 4 w4 0 3 w3 0 2 w2 0 1 w1 w9 0 w0 w8 VIN × 1024 AVDD
5 Application
5.1 C-Bus Clock
Although this is specified as a 500kHz clock for compatibility with other C-BUS devices, the MX839 C-BUS will operate over a much wider range. Users should ensure that the C-BUS clock is at least 4 times slower than the crystal or external clock on Pin 2 of the MX839.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
14
MX839 PRELIMINARY INFORMATION
6 Performance Specification
6.1
6.1.1
Electrical Performance
Absolute Maximum Ratings
Exceeding these maximum ratings can result in damage to the device. General Supply (VDD - VSS) (either AVDD or DVDD) Voltage on any pin to VSS Current AVDD DVDD VSS Any other pin AVDD - DVDD DW / P Package Total Allowable Power Dissipation at TAMB = 25°C Derating above 25°C Storage Temperature Operating Temperature DS Package Total Allowable Power Dissipation at TAMB = 25°C Derating above 25°C Storage Temperature Operating Temperature Note: 1. It is recommended that AVDD be connected to DVDD through a filter. 2. It is also recommended that AVDD and DVDD Voltages be tightly AC coupled to VSS with a capacitor. 6.1.2 Operating Limits Correct operation of the device outside these limits is not implied. Min. Supply (VDD - VSS) (either AVDD or DVDD) Operating Temperature Xtal Frequency 3.0 -40 0.5 Max. 5.5 85 6.0 Units V °C MHz -55 -40 550 9 125 85 mW mW/°C above 25°C °C °C -55 -40 800 13 125 85 mW mW/°C above 25°C °C °C Note 1, 2 -30 -30 -30 -20 -100 30 30 30 20 100 mA mA mA mA mV Notes Min. -0.3 -0.3 Max. 7.0 VDD + 0.3 Units V V
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
15
MX839 PRELIMINARY INFORMATION
6.1.3
Operating Characteristics
For the following conditions unless otherwise specified: AVDD= DVDD = VDD = 3.3V to 5.0V, TAMB = 25°C Notes DC Parameters Supply Voltage Supply Difference (AVDD - DVDD) IDD VDD = 5V powersaved not powersaved VDD = 3.3V powersaved not powersaved 'C-BUS' Interface Input Logic '1' Input Logic '0' Input Leakage Current (Logic '1' and '0') Input Capacitance Output Logic '1' (IOH = 120µA) Output Logic '0' (IOL = 360µA) DACs and Output Buffers (Guaranteed monotonic) Un-loaded Performance Resolution Internal DAC Settling Time (to 0.5 lsb) Integral non-linearity 8 Bit mode 10 Bit mode Differential non-linearity 8 Bit mode 10 Bit mode Buffer Slew Rate (with 20pF load) Buffer Output Resistance Zero Error (For 0000HEX code input) RMS Output Noise Voltage Loaded Performance Output voltage with 5k: resistive load to ground Digital code = 3FFHEX Digital code = 200HEX, 10 Bit Digital code = 80HEX, 8 Bit Output voltage with 5k: resistive load to VDD Digital code = 000HEX Minimum Resistive Load 3 4 1.0 200 mV k: 3 3 3 4.79 2.495 2.495 V V V 1 2 -20 0 10 Figure 3 6 1.0 1.0 TBD 200 20 LSBs LSBs V/µs : mV µV Figure 4 7 3.0 5.0 LSBs LSBs 8 or 10 10.0 Bits µs 90% 10% -1.0 70% 30% 1.0 7.5 DVDD DVDD µA pF DVDD DVDD 150 2.5 250 4.0 PA mA 250 4.5 400 7.0 PA mA 3.0 -100 5.0 5.5 100 V mV Min. Typ. Max. Units
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
16
MX839 PRELIMINARY INFORMATION
Notes A/Ds and Multiplexed Inputs (Guaranteed monotonic) Resolution Input signal 'linear rate of change' VDD = 3.3V, and fA/D_CLK = 1MHz Conversion Time Integral non-linearity Differential non-linearity Zero error A/D Clock Frequency (fA/D_CLK) Input Capacitance Variable Attenuators Nominal Adjustment Range MOD1 Attenuator MOD2 Attenuator Attenuation Accuracy Step Size MOD1 MOD2 Output Impedance Bandwidth (-3dB) Input Impedance Magnitude Comparators and Interrupt Request Resolution Output Logic '0' at IRQ (IOL= 360µA and pull-up resistor R2 = 22k: ± 10% to DVDD) 'Off' State Leakage Current at IRQ Xtal/Clock Input Frequency Range 'High' pulse width 'Low' pulse width Input Impedance (at 100Hz) Gain (input = 1mVRMS at 100Hz) 8 VOUT = DVDD 5 For 1 Bit error fA/D_CLK = 1MHz Figure 4 Figure 3 7 6
Min.
Typ.
Max.
Units
10 0.27 12 2.0 1.0 -20 1.0 TBD 20 TBD
Bits mV/µs µs LSBs mV MHz pF
0 0 -1.0 0.2 0.1 0.4 0.2 600 100 15
12.0 6.0 1.0 0.6 0.3
dB dB dB dB dB : kHz k:
8 10% 10 0.5 40 40 10 20 6.0
Bits DVDD µA MHz ns ns M: dB
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
17
MX839 PRELIMINARY INFORMATION
Operating Characteristics Notes: 1. Measured over a 0 to 30kHz Band. 2. The extremes of the DAC output range (when resistively loaded) is affected by the output impedance of the DAC buffer. Under these conditions, the output impedance can approach 200:. However; when the output is operating well within the supply; the output impedance will be significantly lower, thereby improving the loaded performance. 3. RLOAD = 5k: AVDD = 5.0V. 4. Loads less than 1k: will produce output distortion. 5. Small signal impedance, at AVDD = 5V and TAMB = 25°C. 6. Differential non-linearity is defined as the difference in width between adjacent code midpoints and the width of an ideal LSB, divided by the width of an ideal LSB. See Figure 3. 7. Integral non-linearity is defined as the width difference between an actual code midpoint and the line of best fit through all code midpoints, divided by the width of an ideal LSB. See Figure 4. 8. 6MHz operation at VDD = 5.0V only. The ‘C-BUS’ clock must be at lest 4 times slower than the XTAL/CLOCK frequency.
Analog Output To AVDD
Ideal Response
Code Width=2LSBs Differential Non-Linearity=1LSB
Actual Response 0V 000$ To $2FF Digital Input
Figure 3: Differential Non-Linearity of a D/A Converter
Analog Output 768/768 704/768 640/768 576/768 512/768 448/768 384/768 320/768 256/768 192/768 128/768 64/768 0/768 000 040
Actual Response
Ideal Response
5 LSBs 080 0C0 100 140 180 1C0 200 240 280 2FF
Digital Input
Figure 4: Integral Non-Linearity of a D/A Converter
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
18
MX839 PRELIMINARY INFORMATION
6.1.4
Timing
For the following conditions unless otherwise specified: DVDD = 3.3V to 5.0V, TAMB = 25°C Parameter tCSE tCSH tHIZ tCSOFF tNXT tCK "CS-Enable to Clock-High" Last "Clock-High to CS-High" "CS-High to Reply Output 3-state" "CS-High" Time between transactions "Inter-Byte" Time "Clock-Cycle" time 2.0 4.0 2.0 Min. 2.0 4.0 2.0 Typ. Max. Units µs µs µs µs µs µs
CS
tCSOFF
tCSE
SERIAL CLOCK
tNXT
tNXT
tCSH
tCK
COMMAND DATA
76543210
MSB LSB ADDRESS/COMMAND BYTE
765432 10
FIRST DATA BYTE
765432 10
LAST DATA BYTE
REPLY DATA
tHIZ 765432 10
MSB LSB LAST REPLY DATA BYTE FIRST REPLY DATA BYTE
765432 10
Logic level is not important
Figure 5: 'C-BUS' Timing Timing Notes: 1. Depending on the command, 1 or 2 bytes of COMMAND DATA are transmitted to the peripheral MSB (Bit 7) first, LSB (Bit 0) last. REPLY DATA is read from the peripheral MSB (Bit 7) first, LSB (Bit 0) last. 2. Data is clocked into and out of the peripheral on the rising SERIAL CLOCK edge. 3. Loaded commands are acted upon at the end of each command. 4. To allow for differing µC serial interface formats 'C-BUS' compatible ICs are able to work with either polarity SERIAL CLOCK pulses.
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
19
MX839 PRELIMINARY INFORMATION
6.2
Packaging
Package Tolerances
A Z B E W L T X Y CK H J P
DIM. A B C E H J K L P T W X Y Z MIN.
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)
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)
Alternative Pin Location Marking
PIN 1
0.050 (1.27) 0.016 (0.41) 0.050 (1.27) 0.009 (0.23) 45° 0° 5° 5° 10° 7° 0.0125 (0.32)
NOTE : All dimensions in inches (mm.) Angles are in degrees
Figure 6: 24-pin SOIC Mechanical Outline: Order as part no. MX839DW
A
Package Tolerances
Z B E L
DIM. A B C E H J L P T X Y Z 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.301 (7.65) 0.312 (7.90) 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°
PIN 1 X Y H J P
T
C
NOTE : All dimensions in inches (mm.) Angles are in degrees
Figure 7: 24-pin SSOP Mechanical Outline: Order as part no. MX839DS
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.
Digitally Controlled Analog I/O Processor
20
MX839 PRELIMINARY INFORMATION
A
Package Tolerances
DIM. A B C E E1 H J J1 K L P T Y MIN. TYP. MAX.
1.200 (30.48) 1.270 (32.26) 0.500 (12.70) 0.555 (14.04) 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
B
E1
Y
E
PIN1
T
K H L J J1 P
C
Figure 8: 24-pin PDIP Mechanical Outline: Order as part no. MX839P
© 1998 MXxCOM Inc. www.mxcom.com Tele: 800 638-5577 336 744-5050 Fax: 336 744-5054 Doc. # 20480164.002 4800 Bethania Station Road, Winston-Salem, NC 27105-1201 USA All trademarks and service marks are held by their respective companies.