28123 Parallax Inc, 28123 Datasheet - Page 297

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
' -----[ Subroutine - Display_Menu ]---------------------------------------
Display_Menu:
' -----[ Subroutine - Get_Request ]----------------------------------------
Get_Request:
' -----[ Subroutine - Read_Pushbutton_1 ]----------------------------------
Read_Pushbutton_1:
' -----[ Subroutine - Read_Pushbutton_2 ]----------------------------------
Read_Pushbutton_2:
' -----[ Subroutine - Read_Pot ]-------------------------------------------
Read_Pot:
DEBUG CLS, "MENU: ", CR, CR,
RETURN
DEBUGIN DEC1 request
request = request - 1
RETURN
DEBUG CLS, ? Pb1Pin
PAUSE DelayReader
RETURN
DEBUG CLS, ? Pb2Pin
PAUSE DelayReader
RETURN
HIGH PotPin
PAUSE DelayRc
RCTIME PotPin, 1, time
DEBUG CLS, ? time, "
PAUSE DelayReader
"1) Pushbutton 1", CR,
"2) Pushbutton 2", CR,
"3) Potentiometer", CR,
"4) Photoresistor", CR, CR
"

Related parts for 28123