Ch9_Solutions_WAM2.2

Ch9_Solutions_WAM2.2 - What's a Microcontroller Chapter 9...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 9 Questions 1. What is a pin map? A pin map shows what areas on a part are connected to which pins. 2. What is a reference notch? The reference notch is a small half-circle in the chip’s case. It is placed by the manufacturer on the digital potentiometer to distinguish where to begin counting pins on the part. Chapter 9 Exercises 1. Write a segment of code that makes a BASIC Stamp I/O pin send high/low signals ten times per second using TOGGLE . ' What's a Microcontroller - Chapter9Exercise1.bs2 ' {$STAMP BS2} ' {$PBASIC 2.5} DO LOW 8 PAUSE 50 TOGGLE 8 PAUSE 50 LOOP 2. Write a segment of code that adjusts the tap in the digital pot to pos. 0 regardless of what its current setting is. ' What's a Microcontroller - Chapter9Exercise2.bs2 ' Turn tap on digital pot all the way down to zero ' using an exerpt from TerminalControlledDigitalPot.bs2 ' {$STAMP BS2} ' {$PBASIC 2.5} UdPin CON 5 counter VAR Byte LOW UdPin ' Set U/D pin for Down. FOR counter = 0 TO 128
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

Ch9_Solutions_WAM2.2 - What's a Microcontroller Chapter 9...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online