User guide

MAX1272/MAX1273
Fault-Protected, 12-Bit ADCs
with Software-Selectable Input Range
16 ______________________________________________________________________________________
X = Dont care.
CONTROL BIT SYNCHRONOUS SERIAL-PORT STATUS REGISTER (SSPSTAT)
SMP BIT7 0
SPI Data Input Sample Phase. Input data is sampled at the middle of the data output
time.
CKE BIT6 1 SPI Clock Edge-Select Bit. Data is transmitted on the rising edge of the serial clock.
D/A BIT5 X Data Address Bit
P BIT4 X Stop Bit
S BIT3 X Start Bit
R/W BIT2 X Read/Write Bit Information
UA BIT1 X Update Address
BF BIT0 X Buffer Full Status Bit
Table 6. Detailed SSPSTAT Register Contents—PIC16/PIC17
X = Dont care.
CONTROL BIT SYNCHRONOUS SERIAL-PORT CONTROL REGISTER (SSPCON)
WCOL BIT7 X Write Collision Detection Bit
SSPOV BIT6 X Receive Overflow Detection Bit
SSPEN BIT5 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 BIT4 0 Clock Polarity Select Bit. CKP = 0 for SPI master mode section.
SSPM3 BIT3 0
SSPM2 BIT2 0
SSPM1 BIT1 0
SSPM0 BIT0 1
Synchronous Serial-Port Mode-Select Bit. Sets SPI master mode and selects f
CLK
= f
OSC
/ 16.
Table 5. Detailed SSPCON Register ContentsPIC16/PIC17
1111
1110
1101
1100
0011
0010
0001
0000
012
OUTPUT CODE
INPUT VOLTAGE (LSB)
1 LSB =
FS
4096
3
4092 4094
FS
Figure 13a. Unipolar Transfer Function
0111
0110
0101
0100
0001
0000
1111
1011
1010
1001
1000
-2048 -2046
OUTPUT CODE
(TWO’S COMPLEMENT)
INPUT VOLTAGE (LSB)
1 LSB =
2FS
4096
-1 0 +1
+2045
+2047
Figure 13b. Bipolar Transfer Function