beautypg.com

Digital interface – Rainbow Electronics MAX132 User Manual

Page 10

background image

MAX132

±18-Bit ADC with Serial Interface

10

______________________________________________________________________________________

___________________Digital Interface

Serial data at DIN is sent in 8-bit packets and is shifted
into the internal 8-bit shift register with each rising edge
of SCLK. The data is then latched into either command
input register 0 or command input register 1, as deter-
mined by the LSB of the data sent, and is latched on
the rising edge of CHIP SELECT (CS) Data is clocked
out of the selected output register on each falling edge
of SCLK. D7(MSB) must be the first data bit to be shift-
ed in and is the first bit to be shifted out.

Output data is shifted out at the same time command
data is shifted in. Command data must be clocked in
on the previous 8-bit read-write cycle to receive con-
version data in the present cycle.

Since there is no internal power-on reset, initialize the
MAX132 immediately after power-up to insure correct
operation.

Table 2 defines each bit of five registers: the two com-
mand input registers, output register 0, output register
1, and the status output register.

Command Input Register 0

Register-Set Bits

Data bits D1 and D2 of command register 0 (RS1 and
RS0) determine the data to be read on the data bus.
These bits select which register outputs data to the bus.
Table 3 defines the bit values that determine which reg-
ister is read on the next cycle (Figure 9).

Read-Zero Bit

The read-zero bit allows the ADC to calibrate on com-
mand for zero offset. The read-zero bit, when set to 1,
internally shorts the inputs; when a start-conversion
command is given, the zero error is converted. Subtract
the results from the standard external measurement
conversion when the read-zero conversion ends. If the
read-zero bit is set to 0, the converter measures the
voltage between IN Hl and IN LO once a start bit is
given. Take a new zero reading periodically and when-
ever the ambient temperature, the reference voltage, or
the common-mode input voltage are changed.

START,

READ STATUS

CYCLE 1

REGISTER

INSTRUCTION

(DATA IN)

OUTPUT DATA

OUTPUT STATUS

REGISTER

(EOC, POLARITY, B2–B0)

READ HIGHER

BITS

CYCLE 2

REGISTER 1

( B11–B18)

READ LOWER

BITS

CYCLE 3

REGISTER 0

( B3–B10)

START,

READ STATUS

CYCLE 4

Figure 9. Instruction and Data Sequencing

RS1

0

0

1

RS0

0

1

0

DEFINITIONS

Selects Register 0; output for data bits B3–B10

Selects Register 1; output for data bits B11–B18

Selects Register 2; output status for data bits
B0–B2, polarity, sleep, integrating, EOC, and
collision bit

1

1

Invalid data

Command Input
Register 0

Command Input
Register 1

REGISTER

“1”

“0”

Start

Convert

Returns to

0 at EOC

Set P3

Output

Output Register 0

RS1 = 0, RS0 = 0

Output Register 1

RS1 = 0, RS0 = 1

“1”

50Hz

60Hz

Set P2

Output

B10

B18

MSB

Collision

B9

B17

EOC

Sleep

Awake

Set P1

Output

B8

B16

Integrating

Input

Table 3. Register Set-Bit Definitions

Table 2. Register Map of Input and Output Data

Read Zero

Read V

IN

Set P0

Output

Don’t Care

Don’t Care

Don’t Care

RS0*

Don’t Care

B7

B15

Sleep

B6

B14

-Polarity

RS1*

Don’t Care

B5

B13

B4

B12

DATA BIT

0

1

B3

B11

Output Status
Register

RS1 = 1, RS0 = 0

“0”

No Collision Converting

Not

Integrating

Awake

+Polarity

B2

B1

B0

LSB

*Note

: Refer to Table 3.

D7

D6

D5

D4

D3

D2

D1

D0