28123 Parallax Inc, 28123 Datasheet - Page 110

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
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 28123