28122 Parallax Inc, 28122 Datasheet - Page 108
28122
Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 108 of 340
- Download datasheet (6Mb)
P15
P14
Snippets from the solution program are included below, but keep in mind
solutions may be coded a variety of different ways. However, most solutions
will include the following modifications:
Use two variables to keep track of two player's times.
timeCounterA VAR
timeCounterB VAR
Change instructions to reflect two pushbuttons:
DEBUG "Press and hold pushbuttons", CR,
DEBUG "buttons down again.", CR, CR
Wait for both buttons to be pressed before turning LED red, by using the
operator.
LOOP UNTIL (IN3 = 1) AND (IN4 = 1)
Wait for both buttons to be released to end timing, again using the
LOOP UNTIL (IN3 = 0) AND (IN4 = 0)
Add logic to decide which player's time is incremented.
IF (IN3 = 1) THEN
timeCounterA = timeCounterA + 1
ENDIF
IF (IN4 = 1) THEN
timeCounterB = timeCounterB + 1
ENDIF
Change time display to show times of both players.
DEBUG "Player A Time:
Add logic to show which player had the faster reaction time.
IF (timeCounterA < timeCounterB) THEN
470 Ω
DEBUG "Player B Time:
1
2
P4
Word
Word
", DEC timeCounterA, " ms. ", CR
220
Ω
", DEC timeCounterB, " ms. ", CR, CR
Vss
' Time score of player A
' Time score of player B
10
kΩ
Vdd
P3
220
Ω
AND
Vss
10
operator.
kΩ
AND
Vdd
Related parts for 28122
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: