27220 Parallax Inc, 27220 Datasheet - Page 184

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
Program: SW21-EX31-MC14489.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' This program is a coin counter -- it will count nickels, dimes, quarters,
' and dollars using pushbutton inputs.
' 7-segment LED displays that are controlled with a MC14489.
' -----[ I/O Definitions ]-------------------------------------------------
Clock
SerData
Enable
Coins
' -----[ Constants ]-------------------------------------------------------
FullValue
' Hex values for Letters
Ltr_F
' Special Decode characters
Blank
Ltr_U
Ltr_L
' -----[ Variables ]-------------------------------------------------------
money
idx
deposit
nickel
dime
quarter
dollar
config
dpCtrl
segs5
segs4
segs3
segs2
segs1
PIN
PIN
PIN
VAR
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
0
1
2
INB
500
$F
$0
$A
$5
Word
Nib
Nib
deposit.BIT0
deposit.BIT1
deposit.BIT2
deposit.BIT3
Byte
Nib
Nib
Nib
Nib
Nib
Nib
The "bank" is displayed on four
' shift clock (MC14489.11)
' serial data (MC14489.12)
' enable (MC14489.10)
' coin inputs (P4 - P7)
' bank full = $5.00
' display in Hex mode
' display in Special mode
' current money count
' loop counter
' coins deposited
' bit values of deposit
' decode configuration
' decimal point control
' segs - digit 5
' segs - digit 1

Related parts for 27220