28123 Parallax Inc, 28123 Datasheet - Page 219

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
' What's a Microcontroller - LightMeter.bs2
' Indicate light level using 7-segment display.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
index
time
OUTH = %00000000
DIRH = %11111111
DO
LOOP
Get_Rc_Time:
RETURN
Delay:
RETURN
Update_Display:
RETURN
GOSUB Get_Rc_Time
GOSUB Delay
GOSUB Update_Display
HIGH 2
PAUSE 3
RCTIME 2, 1, time
PAUSE time
IF index = 6 THEN index = 0
'
LOOKUP index, [ %01000000,
index = index + 1
VAR
VAR
%10000000,
%00000100,
%00000010,
%00000001,
%00100000 ], OUTH
BAFG.CDE
Nib
Word
' Variable declarations.
' Initialize 7-segment display.
' Main routine.
' Subroutines
' RC-time subroutine
' Delay subroutine.
' Display updating subroutine.

Related parts for 28123