28122 Parallax Inc, 28122 Datasheet - Page 110

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
LOOP
LOOP UNTIL (IN3 = 0) AND (IN4 = 0)
LOW 14
DEBUG "Player A Time:
DEBUG "Player B Time:
IF (timeCounterA < timeCounterB) THEN
ELSEIF (timeCounterB < timeCounterA) THEN
ELSE
ENDIF
DEBUG CR
DEBUG "To play again, hold the ", CR
DEBUG "buttons down again.", CR, CR
ENDIF
IF (IN4 = 1) THEN
ENDIF
DEBUG "Player A is the winner!", CR
DEBUG "Player B is the winner!", CR
DEBUG "It's a tie!", CR
timeCounterA = timeCounterA + 1
timeCounterB = timeCounterB + 1
", DEC timeCounterA, " ms. ", CR
", DEC timeCounterB, " ms. ", CR, CR
' increment counter
' Loop until both buttons
' released.
' Bi-color LED off.
' A & B times are equal
' Play again instructions.
' Back to "Begin main

Related parts for 28122