28123 Parallax Inc, 28123 Datasheet - Page 125

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
Figure 4-15 is called a timing diagram. It shows a picture of the high and low signals and
how long they last. The timing diagram does not show how many pulses are delivered,
but it does give you information about how long the high and low signals last. Each
pulse (high signal) lasts for 2.0 ms. Each pulse is separated by a 20 ms delay while the
signal is low.
The second
ms. This instructs the servo to turn to the 2 o’clock position for about 3.15 seconds.
Figure 4-15 shows the timing diagram for this pulse train. The pauses between pulses
still last 20 ms.
Vdd (5 V)
Vss (0 V)
NEXT
FOR COUNTER = 1 TO 150
NEXT
PULSOUT 14, 1000
PULSOUT 14, 500
PULSOUT 14, 1000
PAUSE 20
PULSOUT 14, 500
PAUSE 20
FOR…NEXT
2.0 ms
loop delivers 150 pulses, but this time, each pulse only lasts 1.0
sends a pulse that lasts 500 × 2 µs. That’s 1000 µs or 1 ms.
20 ms
sends a pulse that lasts 1000 × 2 µs. That’s 2000 µs or 2 ms.
www.parallax.com
standard servo
2.0 ms
Figure 4-15
Timing Diagram for
2.0 ms Pulses Every
20 ms
Servo horn in 10
o’clock position.

Related parts for 28123