28123 Parallax Inc, 28123 Datasheet - Page 126

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
The last
the servo to go to its center position (12 o’clock) for about 3.23 seconds.
Figure 4-17 shows the timing diagram for these pulses. While the low time is still 20
ms, the pulse now lasts for 1.5 ms.
Do the Math
If you want to convert time from milliseconds to a
use this equation.
Vdd (5 V)
Vss (0 V)
Vdd (5 V)
Vss (0 V)
FOR counter = 1 TO 150
NEXT
FOR…NEXT
Duration
PULSOUT 14, 750
PULSOUT 14, 750
PAUSE 20
=
loop delivers 150 pulses, each of which lasts 1.5 ms. This instructs
number
1.0 ms
1.5 ms
of
20 ms
20 ms
sends a pulse that lasts 750 × 2 µs. That’s 1500 µs or 1.5 ms.
ms
×
500
www.parallax.com
standard servo
www.parallax.com
standard servo
Duration
1.0 ms
1.5 ms
you can use for
Figure 4-16
Timing Diagram for 1.0
ms Pulses Every 20 ms
Servo horn in 2 o’clock
position.
Figure 4-17
Timing Diagram for
1.5 ms Pulses Every
20 ms
Servo horn is in 12
o’clock position.
PULSOUT
,

Related parts for 28123