C/spi interface – Rainbow Electronics MAX1386 User Manual

Page 33

Advertising
background image

MAX1385/MAX1386

Dual RF LDMOS Bias Controllers

with I

2

C/SPI Interface

______________________________________________________________________________________

33

ALMHCFG (Read/Write)

The Hardware Alarm Configuration register controls
SAFE1, SAFE2, and ALARM outputs. Write to the
Hardware Alarm Configuration register by sending the
appropriate write command byte followed by data bits
D15–D0 (see Table 15). Bits D15–D8 are don’t care.
Read the Hardware Alarm Configuration register by
sending the appropriate read command byte.

Set SETSAFE1 to 1 to immediately force SAFE1 active.
This is especially useful when SAFE1 is connected to
OPSAFE1, giving the user software control over shut-
ting down the LDMOS transistor. Set SETSAFE1 to 0 for
normal operation. SETSAFE2 has the same functionality
as SETSAFE1 but for channel 2.

Set ALARMPOL to 1 to configure ALARM active-low. Set
it to 0 to configure ALARM active-high. Set ALARMOPN
to 1 to configure ALARM open-drain. Set it to 0 to config-
ure ALARM push-pull. Set SAFE1POL to 1 to configure
SAFE1 for active-low, and to 0 for active-high. Set
SAFE2POL to 1 to configure SAFE2 for active-low, and to
0 for active-high. Set SAFE1OPN to 1 to configure SAFE1
for open-drain, and to 0 for push-pull. Set SAFE2OPN
to 1 to configure SAFE2 for open-drain, and to 0 for
push-pull.

When connecting SAFE1 and SAFE2 outputs to
OPSAFE1 and OPSAFE2 inputs, configure the device
as follows:

1) Set SAFE1POL and SAFE2POL to 0s.

2) Set SAFE1OPN and SAFE2OPN to 0s.

This ensures that when SAFE1 and SAFE2 are assert-
ed, and connected to OPSAFE1 and OPSAFE2, the
LDMOS transistors are shut off.

ADCCON (Write)

The Analog-to-Digital Conversion register selects which
inputs to the ADC are converted. Write to the Analog-to-
Digital Conversion register by sending the appropriate
write command byte followed by data bits D15–D0 (see
Table 16). Bits D15–D12 are don’t care. Bits D11–D8
are reserved bits and need to be set to 0. Read the
results of the conversions in the FIFO by sending the
appropriate read command byte. See the

ADC

Description

section for a complete description of the

ADC.

Set CONCONV to 1 to convert selected inputs to the
ADC continuously and to 0 to convert selected inputs to
the ADC only once. Set ADCSEL2 to 1 to select volt-
ages at ADCIN2 to be converted. Set IEXT2 to 1 to
select voltages at PGAOUT2 to be converted. Set

BIT NAME

DATA BIT

POR

FUNCTION

LCAL

D15

1

1 = Low wiper autocalibration.
0 = No low wiper autocalibration.

D14–D8

X

Don’t care.

D7–D0

0000 0000

8-bit coarse low wiper DAC input code. D7 is the MSB.

Table 10. LOWIPE1 and LOWIPE2 (Read/Write)

BIT NAME

DATA BIT

RESET STATE

FUNCTION

RESERVED

D15–D8

0

Reserved. Set to 0.

X

D7–D3

X

Don’t care.

FIRSTB

D2

0

1 = Tracking calibration mode.
0 = Acquisition calibration mode.

DOCAL

D1

0

1 = Initiate the calibration defined by FIRSTB (one time).
0 = Do not initiate a calibration.

SELFTIME

D0

0

1 = Initiate periodic calibrations defined by FIRSTB (every 15ms).
0 = Stop periodic calibrations.

Table 12. PGACAL (Write)

DATA BIT

POR

FUNCTION

D15–D10

X

Don’t care.

D9–D0

00 0000 0000

10-bit fine DAC input code.
D9 is the MSB.

Table 11. FINECAL1 and FINECAL2 (Write)

Advertising