beautypg.com

Table 1. detailed sspcon register content – Rainbow Electronics MAX1089 User Manual

Page 11

background image

and is available in MSB-first format. Observe the
SCLK to DOUT valid timing characteristic. Clock
data into the µP on SCLK’s rising-edge.

SPI and MICROWIRE Interface

When using SPI interface (Figure 8a) or MICROWIRE
(Figure 8a and 8b), set CPOL = CPHA = 0. Two 8-bit
readings are necessary to obtain the entire 10-bit result
from the ADC. DOUT data transitions on the serial
clock’s falling edge and is clocked into the µP on
SCLK’s rising edge. The first 8-bit data stream contains
the first 8-bits of DOUT starting with the MSB. The sec-
ond 8-bit data stream contains the remaining two result
bits (B1, B0) and two trailing sub-bits (S1, S0). DOUT
then goes high impedance.

QSPI Interface

Using the high-speed QSPI interface (Figure 9a) with
CPOL = 0 and CPHA = 0, the MAX1086–MAX1089
support a maximum f

SCLK

of 8MHz. One 8- to16-bit

reading is necessary to obtain the entire 10-bit result
from the ADC. DOUT data transitions on the serial
clock’s falling edge and is clocked into the µP on

SCLK’s rising edge. The first 10 bits are the data and
the next two bits are sub-bits (S1, S0). DOUT then
goes high impedance (Figure 9b).

PIC16 and SSP Module and

PIC17 Interface

The MAX1086–MAX1089 are compatible with a
PIC16/PIC17 microcontroller (µC), using the synchro-
nous serial port (SSP) module

To establish SPI communication, connect the controller
as shown in Figure 10a and configure the PIC16/PIC17
as system master. This is done by initializing its syn-
chronous serial port control register (SSPCON) and
synchronous serial port status register (SSPSTAT) to
the bit patterns shown in Tables 1 and 2.

In SPI mode, the PIC16/PIC17 µCs allow eight bits of
data to be synchronously transmitted and received
simultaneously. Two consecutive 8-bit readings (Figure
10b) are necessary to obtain the entire 10-bit result
from the ADC. DOUT data transitions on the serial
clock’s falling edge and is clocked into the µC on
SCLK’s rising edge. The first 8-bit data stream contains

MAX1086–MAX1089

150ksps, 10-Bit, 2-Channel Single-Ended, and

1-Channel True-Differential ADCs in SOT23

______________________________________________________________________________________

11

Figure 8a. SPI Connections

Figure 8b. MICROWIRE Connections

CNVST

SCLK

DOUT

I/O

SCK

MISO

V

DD

SS

SPI

MAX1086–
MAX1089

MAX1086–
MAX1089

CNVST

SCLK

DOUT

I/O

SK

SI

MICROWIRE

Table 1. Detailed SSPCON Register Content

CONTROL BIT

MAX1086–MAX1089

SETTINGS

SYNCHRONOUS SERIAL PORT CONTROL REGISTER (SSPCON)

WCOL

Bit 7

X

Write Collision Detection Bit

SSPOV

Bit 6

X

Receive Overflow Detect Bit

SSPEN

Bit 5

1

Synchronous Serial Port Enable Bit.
0: Disables serial port and configures these pins as I/O port pins.
1: Enables serial port and configures SCK, SDO and SCI pins as serial port pins.

CKP

Bit 4

0

Clock Polarity Select Bit. CKP = 0 for SPI master mode selection.

SSPM3

Bit 3

0

SSPM2

Bit 2

0

SSPM1

Bit 1

0

SSPM0

Bit 0

1

Synchronous Serial Port Mode Select Bit. Sets SPI master mode and selects

fCLK

= f

OSC

/ 16.

X = Don’t care