28123 Parallax Inc, 28123 Datasheet - Page 285

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
SUMMARY
This chapter introduced integrated circuits and how they can be used with the BASIC
Stamp. A transistor was used as a current valve, and a digital potentiometer was used to
control the amount of current passing through the transistor. Examining the digital
potentiometer introduced the reference notch and pin map as important elements of
electronic chips. The function of each of the digital potentiometer pins was discussed, as
well as the device’s internal structure. The PBASIC command
a means to save program memory.
Questions
Exercise
Project
Solutions
1. What are the names of the terminals on the transistor you used in this chapter?
2. Which terminal controls the current passing through the transistor?
3. What can you do to increase or decrease the current passing through the
1. Write a program that adjusts the tap in the digital pot to position 0 regardless of
1. Add a photoresistor to your project and cause the brightness of the LED to adjust
Q1. Emitter, base, and collector.
Q2. The base controls the current passing through the transistor.
Q3. Increase or decrease the current allowed into the transistor's base.
E1. To solve this exercise, look at TerminalControlledDigitalPot.bs2. The first thing
transistor?
its current setting.
with the brightness seen by the photoresistor.
it does, in the Initialization section, is to set the tap to the lowest position. This
exact code is used in the solution below.
' What's a Microcontroller - Ch9Ex01_SetTapToZero.bs2
' Turn tap on digital pot all the way down to zero
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
TOGGLE
was introduced as

Related parts for 28123