adc12032 National Semiconductor Corporation, adc12032 Datasheet - Page 37
![no-image](/images/no-image-200.jpg)
adc12032
Manufacturer Part Number
adc12032
Description
Self-calibrating 12-bit Plus Sign Serial I/o A/d Converters With Mux And Sample/hold
Manufacturer
National Semiconductor Corporation
Datasheet
1.ADC12032.pdf
(41 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
adc12032CIWM
Manufacturer:
NS/国半
Quantity:
20 000
Application Hints
Power Down instructions do not change these default set-
tings. The following power up sequence should be followed:
1. Run the program
2. Prior to responding to the prompt apply the power to the
3. Respond to the program prompts
It is recommended that the first instruction issued to the
ADC12038 be Auto Cal (see Section 1.1).
’variables
⇒
’
’SET CS# HIGH
OUT
⇒
OUT
⇒
OUT
⇒
OUT
⇒
10
LINE INPUT <&ldquo>DI data for ADC12038 (see
⇒
INPUT <&ldquo>ADC12038 output word length
⇒
20
’SET CS# HIGH
OUT
⇒
OUT
⇒
OUT
⇒
’SET CS# LOW
OUT
⇒
OUT
⇒
OUT
⇒
DO$=
⇒
⇒
⇒
⇒
DI=Data string for A/D DI input,
RTS HIGH
DTR LOW
RTS LOW
B4 low
Mode Table on data sheet)”; DI$
(8,9,12,13,16 or 17)”; DOL
RTS HIGH
DTR LOW
RTS LOW
RTS HIGH
DTR HIGH
RTS LOW
DO variable
OUT &H3FC, (&H1 OR INP(&H3FC))
DTR HIGH
OUT &H3FC, (&HFD AND
INP(&H3FC))
ADC12038
<&ldquo> ”
&H3FC, (&H2 OR INP (&H3FC))
&H3FC, (&HFE AND INP(&H3FC))
&H3FC, (&HFD AND INP(&H3FC))
&H3FC, (&HEF AND INP(&H3FC))
&H3FC, (&H2 OR INP (&H3FC))
&H3FC, (&HFE AND INP(&H3FC))
&H3FC, (&HFD AND INP(&H3FC))
&H3FC, (&H2 OR INP (&H3FC))
&H3FC, (&H1 OR INP(&H3FC))
&H3FC, (&HFD AND INP(&H3FC))
DO=A/D result string
DOL=Data Out word length,
’SCLK low
(Continued)
’set
’set
’set
’set
’set
’set
’set
’set
’set
’set
’SET
’reset
37
FOR N=1 TO 8
⇒
⇒
⇒
⇒
⇒
⇒
NEXT N
IF DOL>8 THEN
⇒
⇒
⇒
END IF
OUT
⇒
FOR N=1 TO 500
NEXT N
PRINT DO$
INPUT <&ldquo>Enter <&ldquo>C” to convert
⇒
IF s$=<&ldquo>C” OR s$=<&ldquo>c” THEN
ELSE
END IF
END
Temp$=MID$(DI$,N,1)
IF Temp$=<&ldquo>0” THEN
ELSE OUT &H3FC, (&HFE AND INP(&H3FC))
END IF
DI
OUT &H3FC, (&H2 OR
INP(&H3FC))
IF
END
IF
DO
OUT &H3FC, (&H1 OR INP(&H3FC))
DTR HIGH
OUT &H3FC, (&HFD AND
INP(&H3FC))
FOR N=9 TO DOL
OUT &H3FC, (&H1 OR INP(&H3FC))
DTR HIGH
OUT &H3FC, (&HFD AND
INP(&H3FC))
OUT &H3FC, (&H2 OR
INP(&H3FC))
IF (INP(&H3FE) AND &H10)=&H10 THEN
ELSE
END IF
NEXT N
INP(&H3FC))
else <&ldquo>RETURN” to alter DI data”; s$
GOTO 20
GOTO 10
OUT &H3FC,(&H1 OR INP(&H3FC))
DO$=DO$+<&ldquo>0”
ELSE
DO$=DO$+<&ldquo>1”
DO$=DO$+<&ldquo>0”
DO$=DO$+<&ldquo>1”
(INP(&H3FE) AND 16)=16 THEN
&H3FC, (&HFA AND
’SCLK low
’SCLK low
’SCLK low and DI high
’SCLK high
’SCLK high
www.national.com
’input
’out
’SET
’SET