28128 Parallax Inc, 28128 Datasheet - Page 81
28128
Manufacturer Part Number
28128
Description
KIT BASIC ANALOG/DIGI PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28129.pdf
(176 pages)
Specifications of 28128
Accessory Type
ADC, DAC
Product
Microcontroller Accessories
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 81 of 176
- Download datasheet (3Mb)
Editor and make sure to save it for future use. When the circuit is built and the code is
entered and saved, run Program Listing 4.1, and let's see how it works.
' -----[ Title ]-----------------------------------------------------------
' Basic Analog and Digital - PL4_1R0.bs2
' Digital Voltmeter (DVM). D/A Converter Added
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
adcBits
v
r
v2
v3
n
' -----[ Initialization ]--------------------------------------------------
CS
CLK
DataOutput
DEBUG CLS
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
' -----[ Subroutines ]-----------------------------------------------------
DAC:
RETURN
ADC_Data:
GOSUB DAC
GOSUB ADC_Data
GOSUB Calc_Volts
GOSUB Display
n = 11
OUTPUT 7
OUTPUT 6
OUTPUT 5
OUTPUT 4
OUT7 = n.BIT3
OUT6 = n.BIT2
OUT5 = n.BIT1
OUT4 = n.BIT0
HIGH CS
LOW CS
VAR
VAR
VAR
VAR
VAR
VAR
PIN
PIN
PIN
Byte
Byte
Byte
Byte
Byte
Nib
0
1
2
'Start display.
Related parts for 28128
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: