28123 Parallax Inc, 28123 Datasheet - Page 105
28123
Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 105 of 340
- Download datasheet (6Mb)
Item-3
A player that lets go of the button before the light turns green gets an unreasonably
good score (1 ms). Your microcontroller needs to figure out if a player is cheating.
Pseudo code was introduced near the end of Activity #3 in this chapter. Here is some
pseudo code to help you apply an
•
•
√
√
If the value of timeCounter equals 1
Else, (if the value of timeCounter is greater than 1)
Modify the
one second) in the
Modify your program by implementing this pseudo code in PBASIC to fix the
cheating player problem.
What’s an algorithm? An algorithm is a sequence of mathematical operations.
What’s pseudo random? Pseudo random means that it seems random, but it isn’t really.
Each time you start the program over again, you will get the same sequence of values.
What’s a seed? A seed is a value that is used to start the pseudo random sequence. If you
use a different value (change value from 23 to some other number), you will get a different
pseudo random sequence.
o
o
PAUSE 1000 + value
Display a message telling the player he or she has to wait until after the
light turns green to let go of the button.
Display the value of timeCounter (just like in ReactionTimer.bs2) time
in ms.
PAUSE
PAUSE
command so that the random value is added to 1000 (for
IF…THEN…ELSE
command’s
Duration
statement to solve the problem.
argument.
' <- Modify this.
Related parts for 28123
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: