Electronic Components Datasheet Search
  English  ▼

X  

SP9841 Datasheet(PDF) 31 Page - Sipex Corporation

Part # SP9841
Description  8-Bit Octal, 2-Quadrant Multiplying, BiCMOS DAC
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SIPEX [Sipex Corporation]
Direct Link  http://www.sipex.com
Logo SIPEX - Sipex Corporation

SP9841 Datasheet(HTML) 31 Page - Sipex Corporation

Back Button SP9841 Datasheet HTML 24Page - Sipex Corporation SP9841 Datasheet HTML 25Page - Sipex Corporation SP9841 Datasheet HTML 26Page - Sipex Corporation SP9841 Datasheet HTML 27Page - Sipex Corporation SP9841 Datasheet HTML 28Page - Sipex Corporation SP9841 Datasheet HTML 29Page - Sipex Corporation SP9841 Datasheet HTML 30Page - Sipex Corporation SP9841 Datasheet HTML 31Page - Sipex Corporation SP9841 Datasheet HTML 32Page - Sipex Corporation  
Zoom Inzoom in Zoom Outzoom out
 31 / 32 page
background image
297
Figure 16. Microsoft qbasic Program to Load Evaluation Board with Desired Codes.
SP9841.BAS
'This program accepts an address (1 through 8) and data (0 through 255)
'in decimal and sends them to the DAC.
Addresses 1 through 8 will
'correspond to converters A through H respectively.
The appropriate
'output will be:
Vout-(data/128)*VREF volts.
'We found that for our IBM PC/AT the LPT1 port address was 378H (Data
'Register 378H and control register 37AH) while for our IBM PC/XT the
'LPT1 port address was 3BCH (Data Register #BCH and control register 3BEH).
DIM lsb AS INTEGER
DIM msb AS INTEGER
DIM datareg AS INTEGER
DIM contrlreg AS INTEGER
DIM n AS INTEGER
CLS
DO
INPUT "Enter type of PC, AT or XT: ", type$
IN UCASE$(type$) = "AT" OR UCASE$(type$) = "XT" THEN
EXIT DO
ELSE PRINT "Please enter either AT or XT.": PRINT
END IF
LOOP
IF UCASE$(type$) = "AT" THEN datareg = &H378: cntrlreg = &H37A
IF UCASE$(type$) = "XT" THEN datareg = &H3BC: cntrlreg = &H3BE
CLS
n=0
DO
WHILE n=0
DO
test$ =""
INPUT "Enter Address (1 through 8): ", lsb
IF lsb < 1 or lsb> 8 THEN test$ = "false"
IF test$ = "false" THEN PRINT "Please enter a valid address.": PRINT
LOOP UNTIL test$ <> "false"
DO
test$ = ""
PRINT
INPUT
"Enter Data (0 through 255 in decimal): ", msb
IF msb < 0 or msb > 255 THEN test$ = "false"
IF test$ = "false" THEN PRINT "Please enter valid data.": PRINT
LOOP UNTIL test$ <> "false"
OUT cntrlreg, $H3
'set both latch clocks low
OUT datareg, &H0 + msb
'send most significant byte to port
OUT cntrlreg, &H2
'clock U1
OUT datareg, &H0 + lsb
'send least significant byte to port
OUT cntrlreg, &H0
'clock U2
OUT cntrlreg, &H4
'enable U7, set U1 & U2 to serial out mode
PRINT :
PRINT "Strike spacebar to enter new data or Q to quit."
DO
X$ = INKEY$
IF UCASE$(X$) = "Q" THEN n=1
LOOP UNTIL X$ = " " OR UCASE$(X$) = "Q"
LOOP
END



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com