28123 Parallax Inc, 28123 Datasheet - Page 145
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: 145 of 340
- Download datasheet (6Mb)
E2.
P1. There are many possible solutions; one is given below.
' What's a Microcontroller - Ch04Prj01Soln2__KillSwitch.bs2
' Send messages to the BASIC Stamp to control a servo using
' the Debug Terminal as long as kill switch is not being pressed.
' Contributed by: Professor Clark J. Radcliffe, Department
' of Mechanical Engineering, Michigan State University
' {$STAMP BS2}
' {$PBASIC 2.5}
counter VAR Word
pulses VAR Word
duration VAR Word
DO
LOOP
PAUSE 2000
IF (IN3 = 1) AND (IN4 = 0) THEN
ELSEIF (IN3 = 0) AND (IN4 = 1) THEN
ENDIF
FOR counter = 700 TO 800 STEP 4
NEXT
FOR counter = 800 TO 700 STEP 4
NEXT
DEBUG "Press Start switch to start machinery.
DEBUG CLS, "Enter number of pulses:", CR
DEBUGIN DEC pulses
DEBUG "Enter PULSOUT duration:", CR
DEBUGIN DEC duration
DEBUG "Servo is running...", CR
FOR counter = 1 TO pulses
NEXT
DEBUG "DONE"
PAUSE 2000
FOR pulses = 1 TO 10
NEXT
FOR pulses = 1 TO 10
NEXT
PULSOUT 14, duration
PAUSE 20
PULSOUT 14, counter
PAUSE 20
PULSOUT 14, counter
PAUSE 20
", CR ,CRSRUP
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: