28123 Parallax Inc, 28123 Datasheet - Page 296

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
' -----[ Title ]-----------------------------------------------------------
' What's a Microcontroller - TerminalOperatedSensorArray.bs2
' Use Debug Terminal to choose to read one of four sensors.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]-------------------------------------------------
Pb1Pin
Pb2Pin
PotPin
PhotoPin
' -----[ Constants ]-------------------------------------------------------
DelayRc
DelayReader
' -----[ Variables ]-------------------------------------------------------
request
time
' -----[ Main Routine ]----------------------------------------------------
DO
Figure 10-6
Using the Debug Terminal to Select from a Menu
GOSUB Display_Menu
GOSUB Get_Request
ON request GOSUB Read_Pushbutton_1, Read_Pushbutton_2,
PIN
PIN
PIN
PIN
CON
CON
VAR
VAR
Read_Pot, Read_Photoresistor
3
4
7
9
100
1500
Nib
Word

Related parts for 28123