27297 Parallax Inc, 27297 Datasheet - Page 79
27297
Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet
1.27297.pdf
(230 pages)
Specifications of 27297
Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 79 of 230
- Download datasheet (3Mb)
Digit8
Digit9
DigSel
' -----[ Initialization ]--------------------------------------------------
Reset:
' -----[ Program Code ]----------------------------------------------------
Main:
' -----[ Subroutines ]-----------------------------------------------------
Show_Clock:
Behind the Scenes
The first two projects with 7-segment displays used only one digit. This project uses
four. A new problem arises; since the segment (anode) lines of the displays are tied
together, we can only activate one at a time. This is accomplished by putting the
Digs = %1111
DIRS = $0FFF
DO WHILE (Tic = IsHigh)
LOOP
DO WHILE (Tic = IsLow)
LOOP
secs = secs + 1 // 3600
GOTO Main
time = (secs / 60) * 100
time = time + (secs // 60)
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 = Segs | DecPnt
DATA
DATA
DATA
DATA
DATA
DATA
%01111111
%01100111
%1110
%1101
%1011
%0111
' digit 0 active
' digit 1 active
' digit 2 active
' digit 3 active
' all off
' make segs & digs outputs
' wait during high cycle
' wait during low cycle
' update current time
' get mins, move to 100s
' add seconds in 1s/10s
' clear display
' select digit
' move digit pattern to segs
' add decimal point
' update digit pointer
Related parts for 27297
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: