28123 Parallax Inc, 28123 Datasheet - Page 95

TEXT WHAT'S A MICROCONTROLLER

28123

Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28123

Style
Book
Title
What's a Microcontroller?
Contents
Whats a Microcontroller? Text
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
Lead Free Status / RoHS Status
Not applicable / Not applicable
LOOP
How PushbuttonControlOfTwoLeds.bs2 Works
If the display of
previous example, it would be difficult to read. One way to fix this is to always send the
cursor to the top-left position in the Debug Terminal using the
By sending the cursor to the home position each time through the
commands:
display the values of
The
These commands in the
from the previous activity:
DEBUG HOME
DEBUG ? IN4
DEBUG ? IN3
IF (IN3 = 1) THEN
ELSEIF (IN4 = 1) THEN
ELSE
ENDIF
LOW 14
LOW 15
PAUSE 50
HIGH 14
PAUSE 50
HIGH 15
PAUSE 50
PAUSE 50
DO
keyword begins the loop in this program:
DEBUG HOME
DEBUG ? IN4
DEBUG ? IN3
DO
IF (IN3 = 1) THEN
HIGH 14
IN3
IN4
and
IF
and
IN4
statement are the same as the ones in the example program
IN3
scrolled down the Debug Terminal as they did in the
in the same part of the Debug Terminal each time.
HOME
formatter:
DO…LOOP
, the

Related parts for 28123