28129 Parallax Inc, 28129 Datasheet - Page 83

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
About the Code
The comments are updated to indicate that this is Program Listing 4.1. In the third
comment is included a reference to indicate that a function was added to the DVM that
does D/A conversion.
A nibble size variable
the binary value for the D/A converter.
A
subroutine.
GOSUB
' -----[ Title ]---------------------------------------------
' Basic Analog and Digital - PL4_1R0.bs2
' Digital Voltmeter (DVM). D/A Converter Added
' {$STAMP BS2}
' {$PBASIC 2.5}
n
command is added to the main routine that sends the program to the
GOSUB DAC
VAR
n
is added to the declarations section, and it will be used to store
Nib
'
'
Figure 4-3
Debug Terminal
Output for Program
Listing 4.1.
'
'
DAC

Related parts for 28129