750-00004 Parallax Inc, 750-00004 Datasheet - Page 14

no-image

750-00004

Manufacturer Part Number
750-00004
Description
POWER SUPPLY 24VDC 600MA
Manufacturer
Parallax Inc
Datasheet

Specifications of 750-00004

Form
Wall Mount (2 Prong)
Voltage - Output Per Connector
24VDC
Current - Output
600mA
Polarization
Positive Center
Cord Plug
2.1mm I.D. x 5.5mm O.D. x 12mm Female
Voltage - Input
120VAC
Power - Output
14W
Transformer Type
Linear, Unregulated
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Efficiency
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Setup:
' -----[ Program Code ]----------------------------------------------------
Main:
' -----[ Subroutines ]-----------------------------------------------------
' Scans and saves digital inputs, DIn1 - DIn10
' -- returns inputs in "digIns" (1 = input active)
Read_DigIns:
' Refreshes digital outputs, DOut1 - DOut8
Parallax, Inc. • Stamp PLC (#30064) • Version 1.8 • 12/29/2003
LOW Clock
HIGH Ld165
HIGH AdcCS
DOuts = %11111111
DIRH = %11111111
adcRes = 12
' demo - replace with your code
'
GOSUB Read_DigIns
DEBUG HOME, "Inputs = ", BIN10 digIns, CR, CR
' copy inputs to outputs
' -- Din9
' -- Din10 --> Dout2
'
digOuts = digIns
GOSUB Update_DigOuts
IF (dIn9 = IsOn) THEN Do1 = DirectOn
IF (dIn10 = IsOn) THEN Do2 = DirectOn
' read single-ended analog inputs
' -- display input as millivolts
'
mode = AdcUP5
FOR chan = Ain1 TO Ain4
NEXT
GOTO Main
'
' end of demo code
END
PULSOUT Ld165, 15
SHIFTIN Di165, Clock, MSBPRE, [dinLo]
dinHi = 0
dinHi.BIT0 = ~Di9
dinHi.BIT1 = ~Di10
RETURN
GOSUB Read_ADC
DEBUG "Ain", ("1" + chan), ".... ",
DEC (mVolts / 1000), ".", DEC3 mVolts, CR
--> Dout1
' preset control lines
' all outputs off
' enable output drivers
' use all ADC bits
' load inputs
' shift in
' clear upper bits
' grab DIN9
' grab DIN10
Page
14

Related parts for 750-00004