28123 Parallax Inc, 28123 Datasheet - Page 169

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
may find yourself using multiplication and division as well. The
used at the beginning of a program to substitute a name for a number. As with naming
variables, naming constants is also called creating an alias. After an alias is created, the
name can be used in place of the number throughout the program. This can come in
handy, especially if you need to use the same number in 2, 3, or even 100 different places
in the program. You can change the number in the
100 different instances of that number are automatically updated next time you run the
program.
Questions
Exercise
Projects
Solutions
1. When you turn the dial or knob on a sound system, what component are you
2. In a typical potentiometer, is the resistance between the two outer terminals
3. How is a capacitor like a rechargeable battery? How is it different?
4. What can you do with an RC-time circuit to give you an indication of the value
5. What happens to the RC discharge time as the value of R (the resistor) gets
6. What does the
1. Let’s say that you have a 0.5 µF capacitor in an RC timer circuit, and you want
1. Add a bi-color LED circuit to Activity #4. Modify the example program so that
2. Use
Q1. A potentiometer.
most likely adjusting?
adjustable?
of a variable resistor?
larger or smaller?
the measurement to take 10-times as long. Calculate the value of the new
capacitor.
the bi-color LED is red when the servo is rotating counterclockwise, green when
the servo is rotating clockwise, and off when the servo holding its position.
only rotates between
IF…THEN
to modify the example program from Activity #4 so that the servo
CON
directive do? Explain this in terms of a name and a number.
PULSOUT
values of 650 and 850.
CON
directive, and all 2, 3, or even
CON
directive can be

Related parts for 28123