27220 Parallax Inc, 27220 Datasheet - Page 82

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
Main:
' -----[ Subroutines ]-------------------------------------------------
Show_Clock:
DO WHILE (Tic = IsHigh)
LOOP
DO WHILE (Tic = IsLow)
LOOP
tenths = tenths + 1 // 36000
GOTO Main
time = (tenths / 600) * 100
time = time + (tenths // 600 / 10)
Segs = Blank
READ (DigSel + theDig), Digs
READ (Digit0 + (time DIG theDig)), Segs
IF (theDig = 2) THEN
ENDIF
theDig = theDig + 1 // 4
RETURN
GOSUB Show_Clock
GOSUB Show_Clock
Segs.BIT7 = tenths.BIT0
' wait during high cycle
' wait during low cycle
' update time @ 10 Hz
' get mins, move to 100s
' add seconds in 1s/10s
' clear display
' select digit
' move digit pattern to segs
' blink decimal point
' update digit pointer

Related parts for 27220