28129 Parallax Inc, 28129 Datasheet - Page 61

TEXT BASIC ANALOG & DIGITAL

28129

Manufacturer Part Number
28129
Description
TEXT BASIC ANALOG & DIGITAL
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28129

Style
Book
Title
Basic Analog and Digital
Contents
Basic Analog and Digital Text
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
The
subroutine shortly. The subroutine will calculate the measured voltage to the hundredth’s
decimal place.
At present, the
voltage sample taken by the ADC0831. It will be modified to display the decimal
equivalent of the 8-bit binary value. It will also be modified to display the voltage
measurement.
The following
Debug Terminal. Then it prints the message in quotes. The modifier
value of the
If the number of digits displayed is likely to vary, when using the
command, always specify how many digits the numeric outputs should have with
modifiers like
the number of digits, so modifiers such as
The
Debug Terminal display is updated frequently and rapidly. When
under these circumstances, the repeated clearing the Debug Terminal causes a flicker that
makes the display difficult to read.
The
GOSUB Display
We will modify the
contents of
Terminal display our DVM reading.
Calc_Volts
DEBUG HOME
RETURN
Calc_Volts:
RETURN
DEBUG HOME
DEBUG "8-bit binary value:
adcBits
adcBits
command sends the program back to the line immediately following the
BIN8, DEC3,
DEBUG
Display
command.
subroutine is empty right now, but we will develop the code for this
command is better for programs that cycle through loops where the
Display
in the Debug Terminal. Code will also be added to make the Debug
variable is displayed as 8 binary digits.
commands send the cursor to the top-left "home" position in the
subroutine just displays the binary output for each analog
etc. When
subroutine to display the decimal equivalent of the binary
DEBUG CLS
BIN
and
", BIN8 adcBits
DEC
is used, it’s OK to skip specifying
can be used instead.
BIN8
DEBUG CLS
makes it so the
DEBUG HOME
is used

Related parts for 28129