Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting...

56
Figure 2-1 The pin designations for the 40-pin Propeller chip Wiring Diagrams.indd 1 6/4/10 3:01:53 PM

Transcript of Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting...

Page 1: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 2-1 The pin designations for the 40-pin Propeller chip

Wiring Diagrams.indd 1 6/4/10 3:01:53 PM

Page 2: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 2-2 The basic layout of the Propeller system

Wiring Diagrams.indd 2 6/4/10 3:01:53 PM

Page 3: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor

Wiring Diagrams.indd 3 6/4/10 3:01:53 PM

Page 4: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 2-4 How methods are organized and called in a Spin application

Wiring Diagrams.indd 4 6/4/10 3:01:53 PM

Page 5: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 3-5 Pinouts for the six inverters in a 7404 IC

Wiring Diagrams.indd 5 6/4/10 3:01:54 PM

Page 6: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 3-6 Using one of the buffers in a 7404 to power an LED.

Wiring Diagrams.indd 6 6/4/10 3:01:54 PM

Page 7: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 4-1 Circuitry between the output line of the Propeller and LED

Wiring Diagrams.indd 7 6/4/10 3:01:54 PM

Page 8: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 4-3 Linear program schematic

Wiring Diagrams.indd 8 6/4/10 3:01:54 PM

Page 9: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 4-5 Code descriptions for the program to blink an LED

Wiring Diagrams.indd 9 6/4/10 3:01:55 PM

Page 10: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 4-6 Assigning space for a new cog

Wiring Diagrams.indd 10 6/4/10 3:01:55 PM

Page 11: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 5-1 An overview of the Propeller memory banks

Wiring Diagrams.indd 11 6/4/10 3:01:55 PM

Page 12: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

5-2

S

imp

le c

og

lau

nch

exp

lan

atio

n, w

ith

no

var

iab

les

Wiring Diagrams.indd 12 6/4/10 3:01:55 PM

Page 13: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 5-3 Advanced cog creation explanation, with variables.

Wiring Diagrams.indd 13 6/4/10 3:01:56 PM

Page 14: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 6-1 Propeller hub main memory map (from page 31 of Propeller Manual [Ver. 1.1])

Wiring Diagrams.indd 14 6/4/10 3:01:56 PM

Page 15: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 7-2 Illustration of a PWM signal

Wiring Diagrams.indd 15 6/4/10 3:01:56 PM

Page 16: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 10-1 Simple program with three method calls

Wiring Diagrams.indd 16 6/4/10 3:01:56 PM

Page 17: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 10-3 Wiring schematic for blinking an LED in Program 10-1

Wiring Diagrams.indd 17 6/4/10 3:01:57 PM

Page 18: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 10-4 Wiring for one LED as programmed in Program 10-1

Wiring Diagrams.indd 18 6/4/10 3:01:57 PM

Page 19: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 13-1 Wiring layout for blinking an LED

Wiring Diagrams.indd 19 6/4/10 3:01:57 PM

Page 20: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 13-2 Basic power-up layout and USB connection for a Propeller chip

Wiring Diagrams.indd 20 6/4/10 3:01:57 PM

Page 21: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 15-1 Switch controls LED on line P27 by pulling line P23 low.

Wiring Diagrams.indd 21 6/4/10 3:01:58 PM

Page 22: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-1 Circuitry for reading a potentiometer with a Propeller chip

Wiring Diagrams.indd 22 6/4/10 3:01:58 PM

Page 23: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-2 Graphic of resistance vs. time to discharge

Wiring Diagrams.indd 23 6/4/10 3:01:58 PM

Page 24: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-3 Theoretical charging and discharging of a capacitor

Wiring Diagrams.indd 24 6/4/10 3:01:58 PM

Page 25: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

16-4

C

om

ple

te c

ircu

itry

fo

r re

adin

g a

po

ten

tio

met

er

Wiring Diagrams.indd 25 6/4/10 3:01:59 PM

Page 26: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-5 The MCP3202 and MCP 3208 pinouts

Wiring Diagrams.indd 26 6/4/10 3:01:59 PM

Page 27: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-7 Wiring diagram for the code shown in Program 16-3

Wiring Diagrams.indd 27 6/4/10 3:01:59 PM

Page 28: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-8 Wiring diagram for a two-channel MCP3202 A2D module

Wiring Diagrams.indd 28 6/4/10 3:01:59 PM

Page 29: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-9 Wiring diagram for an eight-channel 3208 A2D module

Wiring Diagrams.indd 29 6/4/10 3:02:00 PM

Page 30: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 16-10 Wiring schematic for blinking an LED and reading a potentiometer

Wiring Diagrams.indd 30 6/4/10 3:02:00 PM

Page 31: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 17-1 Wiring schematic for tone generator

Wiring Diagrams.indd 31 6/4/10 3:02:00 PM

Page 32: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 17-3 Setup for reading a fixed frequency

Wiring Diagrams.indd 32 6/4/10 3:02:00 PM

Page 33: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 18-1 Memsic 2125 gravity sensor connections

Wiring Diagrams.indd 33 6/4/10 3:02:01 PM

Page 34: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

18-3

W

irin

g t

he

Mem

sic

2125

to

a P

rop

elle

r ch

ip a

nd

an

LC

D

Wiring Diagrams.indd 34 6/4/10 3:02:01 PM

Page 35: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 18-4 Waveforms of read and created pulse widths

Wiring Diagrams.indd 35 6/4/10 3:02:01 PM

Page 36: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 19-2 Pin assignment for a common anode seven-segment display (face view, as seen from above). These are the pins as assigned on the 16-pin device.

Wiring Diagrams.indd 36 6/4/10 3:02:01 PM

Page 37: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 19-3 Actual segment connections to the Propeller

Wiring Diagrams.indd 37 6/4/10 3:02:02 PM

Page 38: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 19-5 Using four displays

Wiring Diagrams.indd 38 6/4/10 3:02:02 PM

Page 39: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 20-1 Wiring for the metronome

Wiring Diagrams.indd 39 6/4/10 3:02:02 PM

Page 40: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 21-2 Connecting the LCD to the Propeller chip (8-bit mode)

Wiring Diagrams.indd 40 6/4/10 3:02:02 PM

Page 41: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 23-3 Connection schematic for Xavien two-axis amplifier

Wiring Diagrams.indd 41 6/4/10 3:02:02 PM

Page 42: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

23-4

U

sin

g t

he

Xav

ien

tw

o-a

xis

amp

lifier

wit

h a

mo

tor

Wiring Diagrams.indd 42 6/4/10 3:02:03 PM

Page 43: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

23-7

U

sin

g t

he

So

larb

oti

cs t

wo

-axi

s am

plifi

er

Wiring Diagrams.indd 43 6/4/10 3:02:03 PM

Page 44: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

23-9

W

irin

g c

on

nec

tio

ns

for

Xav

ien

sin

gle

-axi

s am

plifi

er

Wiring Diagrams.indd 44 6/4/10 3:02:03 PM

Page 45: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

24-2

W

irin

g f

or

run

nin

g a

n R

/C h

ob

by s

ervo

fro

m a

Pro

pel

ler

Wiring Diagrams.indd 45 6/4/10 3:02:03 PM

Page 46: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 25-2 Wiring diagram for Propeller, potentiometer, and motor amplifier

Wiring Diagrams.indd 46 6/4/10 3:02:04 PM

Page 47: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

25-3

D

iag

ram

of

the

con

tro

l reg

iste

r fo

r C

TR

A b

it a

ssig

nm

ents

Wiring Diagrams.indd 47 6/4/10 3:02:04 PM

Page 48: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 26-2 Wiring schematic for a stepper motor

Wiring Diagrams.indd 48 6/4/10 3:02:04 PM

Page 49: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 26-3 Wiring diagram for stepper motor control from potentiometers

Wiring Diagrams.indd 49 6/4/10 3:02:04 PM

Page 50: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

27-2

W

irin

g d

iag

ram

fo

r th

e ta

ble

: co

nn

ecti

ng

to

th

e M

emsi

c ac

cele

rom

eter

to

tw

o s

ervo

s

Wiring Diagrams.indd 50 6/4/10 3:02:05 PM

Page 51: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 28-2 Quadrature encoder signals. One signal leads the other by 90 degrees in a 360-degree cycle.

Wiring Diagrams.indd 51 6/4/10 3:02:05 PM

Page 52: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 28-4 Wiring schematic for running a DC motor with an encoder

Wiring Diagrams.indd 52 6/4/10 3:02:05 PM

Page 53: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 28-5 Two-potentiometer setup motor-control diagram

Wiring Diagrams.indd 53 6/4/10 3:02:06 PM

Page 54: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 28-6 Simple ramp up/ramp down

Wiring Diagrams.indd 54 6/4/10 3:02:06 PM

Page 55: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Figure 28-7 The speed/time path to be followed by the motor

Wiring Diagrams.indd 55 6/4/10 3:02:06 PM

Page 56: Figure 2-1 The pin designations for the 40-pin Propeller chip · Figure 2-3 Using an inverting buffer to connect to an LED and a dry contact switch with a pull-up resistor ... display

Fig

ure

D-1

W

irin

g s

chem

atic

fo

r ex

per

imen

tal b

oar

d. (

Sp

ecifi

cati

on

s ar

e lia

ble

to

ch

ang

e w

ith

ou

t n

oti

ce.)

Wiring Diagrams.indd 56 6/4/10 3:02:06 PM