28125 Parallax Inc, 28125 Datasheet - Page 68

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
accurate servo motor control, the time these signals stay high must be much more precise
than you can get with a
command’s
time. There’s a different command called
precise amounts of time. These amounts of time are values you use in the
argument, and they are measured in units that are two millionths of a second!
You can send a
second) by using this command:
This command would turn the LED on for 4 µs
This command sends a high signal that you can actually view:
How long does the LED circuit connected to P13 stay on when you send this pulse?
Let’s figure it out. The time it stays on is 65000 times 2 µs. That’s:
which is still pretty fast, thirteen hundredths of a second.
PULSOUT Pin, Duration
PULSOUT 13, 1
PULSOUT 13, 2
PULSOUT 13, 65000
Duration
A microsecond is a millionth of a second. It’s abbreviated µs. Be careful when you write
this value, it’s not the letter ‘u’ from our alphabet; it’s the Greek letter mu ‘µ’.
For example, 8 microseconds is abbreviated 8 µs.
The largest value you can use in a
Duration
HIGH
=
=
=
65000
65000
. 0
13
signal that turns the P13 LED on for 2 µs (that’s two millionths of a
s
×
×
argument by 1 ms (remember, that’s 1/1000 of a second) at a
HIGH
. 0
2
µ
000002
s
and a
s
PAUSE
Duration
command. You can only change the
PULSOUT
argument is 65535.
that can deliver high signals for
Duration
PAUSE

Related parts for 28125