e022014.pdf

(892 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
MICRO PROCESSOR
PICee
Development System
a PIC16F84-based single-board computer
by Reinhardt Weber, DC5ZM
weber.reinhardt@t-online.de
This single-board computer, using the popular low-cost PIC16F84 micro-
controller, has been developed with educational applications in mind.
The PICee single-board computer
described in this article is a versatile
training and development system
based on the well-known Microchip
PIC16F84 microcontroller. The micro-
controller’s flash memory is electri-
cally erasable: hence the ‘ee’ in the
title. In contrast to the 89C8252
Flash microcontroller board
described in our December 2001
issue, the 16F84 processor used here
is a so-called ‘RISC’ (reduced
instruction set computer) microcon-
troller with only a small number of
instructions. The PICee board allows
experimentation with all 35 of the
processor’s instructions without
additional hardware. The board
encompasses a wide range of appli-
cations, from a simple LED flasher to
an elegant crystal-controlled clock.
The programming
hardware
The socket can accept all
varieties of the Microchip
PIC16F84, with clock
frequencies from 4 to
20 MHz. The clock
can be generated
using a quartz crys-
tal or an RC oscillator.
Switch S2 selects
between the two oscillator types.
Using the slower RC oscillator is par-
ticularly convenient during experi-
mentation or development. The clock
14
Elektor Electronics
2/2002
855733322.862.png 855733322.973.png 855733322.1084.png 855733322.1195.png 855733322.001.png
MICRO PROCESSOR
IC1
7805
+UB
+5V
+5V
K1
3
+5V
D1
9...12V
2
DC
S10
R1
I
1N4007
P2
R23
+5V
1
LCD
CONTRAST
R31
C13
C1
C2
C14
K3
+5V
+5V
D 22
10k
a 1
a 2
a 3
a 4
a 5
a 6
a 7
a 8
a 9
470 µ
100n
100n
47 µ
25V
25V
R7
C16
C5
C6
C10
LCD Module
+UB
K4
S5
S6
S7
47
µ
100n
100n
100n
16V
IC4.B
C
B
A
4
D3
D4
D6
D7
IC4 = 74HCT125
EN
+5V
6
5
4x
1N4148
a10
a11
a12
a13
a14
a15
a16
a17
a18
a19
a20
a21
a22
a23
a24
a25
a26
a27
a28
a29
a30
a31
a32
IC4.D
R24
R30
13
R35
R34
+5V
R3
10k
EN
R9
470
S9
12
11
S4
T1
LCD
-E
K2
LIGHT
1
IC4.C
P1
14
6
BC547
10
RC
CLOCK
2
3
RA4
R4
10k
EN
R11
470
7
9
8
2
RA3
3
100k
1
RA2
IC3
+5V
8
18
17
R2
RA1
RA0
IC4.A
4
1
9
14
R6
10k
EN
C3
5
2
3
IC4
PIC16F84
100n
7
13
12
11
10
RB7
DB9
4
+5V
MCLR
RB6
RB5
R33
3k3
RB4
9
8
7
6
R14
RB3
D2
D21
RB2
14
RB1
1N4148
R5
1k
RB 0
13
6
CUR LIM
CAT
OSC1
OSC2
16
15
5
IC2
R13
L1
100
TL497
µ
H
+5V
7
1
ANO
C IN
10
COL OUT
R12
R15
R16
R17
R18
R19
R20
R21
R22
R25
R26
R27
R28
R29
3
2
8
FREQ
INH
R32
R8
R10
4
SUBS
E OUT
C4
S2
+5V
T2
5
X1
220p
D 8
D 9
D1 0
D1 1
D 12
D 13
D 14
D1 5
D 16
D 17
D 18
D1 9
D2 0
D5
CLOCK
T3
S3
20MHz
C15
C11
C12
C7
100n
C8
27p
C9
27p
S8
1N4148
S1
47 µ
100n
100n
RESET
16V
LED's
2x
BC547
010062 - 11
Figure 1. The microcontroller training board includes a wide range of peripherals for experimentation.
frequency is continuously variable
via trimmer P1. Diode D2 and resis-
tor R5 ensure that 5 V is fed to the
MCLR input of the microcontroller in
normal operation. Pushbutton S3 can
be used to reset the processor.
If a DC voltage of around 13.5 V is
applied to the MCLR input, the
microcontroller switches into pro-
gramming mode. The programming
voltage is generated on the circuit
board using a TL497 step-up con-
verter (IC2) and enabled using
switch S1, which takes pin 5 of IC2
to ground. LED D21 indicates when
programming mode has been acti-
vated. The board is connected to a
PC over the serial interface via 9-pin
sub-D connector K2. Connection can
be made using a normal RS232 cable
(not a null modem cable) with a 9-
pin D-type plug at the PICee end
and the usual 9-pin D-type socket at
the PC end. Connection should be
made with the unit switched off
only when the unit is connected
should power be applied and the
programmer software started up.
The two programming signals DATA
and CLOCK are taken via drivers
IC4.C and IC4.D to microcontroller
inputs RB6 and RB7. Driver IC4.B
delivers data read from the micro-
controller back to the interface. Dri-
ver stage IC4.A is used to control the
programming voltage and reset the
microcontroller.
A microcontroller can become the
heart of a microcomputer system
with the addition of peripheral com-
ponents. The circuit board includes
three typical applications that allow
experimentation with the microcon-
troller’s instruction set. These expan-
sion circuits can also be built into
other applications you may develop.
LEDs D8 to D20 indicates the logic values
present on the RA and RB ports of the micro-
controller. These are very helpful when debug-
ging applications at low speed using the RC
oscillator. They can also be used in your first
programming exercises: for example, a LED
flasher, running light, bar graph display, or
LED dimmer. The port LEDs can be enabled
or disabled via miniature switch S8.
Switches S5, S6 and S7 form a mini-key-
board. Pressing S6 or S7 produces a logic ‘1’
at port inputs RA1 or RA0, while pressing S7
produces a logic ‘1’ at both inputs, thanks to
the wired-OR configuration around D3 and
D4. It can be determined in software which
button has been pressed. Three buttons can
give rise to a wide range of control possibili-
ties if one button is allocated to a ‘mode’ func-
tion to select a value to be changed, while the
other two are used to adjust the selected
value, up or down. Think of how alarm clocks
or time switches are set, or how car radios
are controlled.
2/2002
Elektor Electronics
15
855733322.112.png 855733322.223.png 855733322.333.png 855733322.357.png 855733322.368.png 855733322.379.png 855733322.390.png 855733322.401.png 855733322.412.png 855733322.422.png 855733322.433.png 855733322.444.png 855733322.455.png 855733322.466.png 855733322.477.png 855733322.488.png 855733322.499.png 855733322.510.png 855733322.521.png 855733322.532.png 855733322.543.png 855733322.554.png 855733322.565.png 855733322.576.png 855733322.587.png 855733322.598.png 855733322.609.png 855733322.620.png 855733322.631.png 855733322.642.png 855733322.653.png 855733322.664.png 855733322.675.png 855733322.686.png 855733322.697.png 855733322.708.png 855733322.719.png 855733322.730.png 855733322.741.png 855733322.752.png 855733322.763.png 855733322.774.png 855733322.785.png 855733322.796.png 855733322.807.png 855733322.818.png 855733322.829.png 855733322.840.png 855733322.851.png 855733322.863.png 855733322.874.png 855733322.885.png 855733322.896.png 855733322.907.png 855733322.918.png 855733322.929.png 855733322.940.png 855733322.951.png 855733322.962.png 855733322.974.png 855733322.985.png 855733322.996.png 855733322.1007.png 855733322.1018.png 855733322.1029.png 855733322.1040.png 855733322.1051.png 855733322.1062.png 855733322.1073.png 855733322.1085.png 855733322.1096.png 855733322.1107.png 855733322.1118.png 855733322.1129.png 855733322.1140.png 855733322.1151.png 855733322.1162.png 855733322.1173.png 855733322.1184.png 855733322.1196.png 855733322.1207.png 855733322.1218.png 855733322.1229.png 855733322.1240.png 855733322.1251.png 855733322.1262.png 855733322.1273.png 855733322.1284.png 855733322.1295.png 855733322.002.png 855733322.013.png 855733322.024.png 855733322.035.png 855733322.046.png 855733322.057.png 855733322.068.png 855733322.079.png 855733322.090.png 855733322.101.png 855733322.113.png 855733322.124.png 855733322.135.png 855733322.146.png 855733322.157.png 855733322.168.png 855733322.179.png 855733322.190.png 855733322.201.png 855733322.212.png 855733322.224.png 855733322.235.png 855733322.246.png 855733322.257.png 855733322.268.png 855733322.279.png 855733322.290.png 855733322.301.png 855733322.312.png 855733322.323.png 855733322.334.png 855733322.345.png 855733322.349.png 855733322.350.png 855733322.351.png 855733322.352.png 855733322.353.png 855733322.354.png 855733322.355.png 855733322.356.png 855733322.358.png 855733322.359.png 855733322.360.png 855733322.361.png 855733322.362.png 855733322.363.png 855733322.364.png 855733322.365.png 855733322.366.png 855733322.367.png 855733322.369.png 855733322.370.png 855733322.371.png 855733322.372.png 855733322.373.png 855733322.374.png 855733322.375.png 855733322.376.png 855733322.377.png 855733322.378.png 855733322.380.png 855733322.381.png 855733322.382.png 855733322.383.png 855733322.384.png 855733322.385.png 855733322.386.png 855733322.387.png 855733322.388.png 855733322.389.png 855733322.391.png 855733322.392.png 855733322.393.png 855733322.394.png 855733322.395.png 855733322.396.png 855733322.397.png 855733322.398.png 855733322.399.png 855733322.400.png 855733322.402.png 855733322.403.png 855733322.404.png 855733322.405.png 855733322.406.png 855733322.407.png 855733322.408.png 855733322.409.png 855733322.410.png 855733322.411.png 855733322.413.png 855733322.414.png 855733322.415.png 855733322.416.png 855733322.417.png
 
MICRO PROCESSOR
H6
R3
R4
D8
R15
R16
R17
R18
R19
R20
R21
R22
R23
C6
D9
R11
D10
R9
D11
R7
D12
C12
D13
S2
D14
R25
R26
R27
R28
C8
D15
C9
D2
R5
R13
D16
R29
R12
R35
S9
D17
R34
D18
D7
D3
D4
S4
D19
D6
S8
D20
R1
R33
S10
R31
D22
D21
H8
Figure 2. The layout of the single-sided printed circuit board for the PICee single-board computer.
When bright light falls on the LEDs, a volt-
age can be developed at the high-impedance
inputs to the microcontroller that can lead to
false readings: for this reason R34
and R35 are fitted across monitor
LEDs D16 and D17 to pull the input
signals down to ground, avoiding
this unwanted effect.
A 2-line by 16-character alphanu-
16
Elektor Electronics
2/2002
855733322.418.png 855733322.419.png 855733322.420.png 855733322.421.png 855733322.423.png 855733322.424.png 855733322.425.png 855733322.426.png 855733322.427.png 855733322.428.png 855733322.429.png 855733322.430.png 855733322.431.png 855733322.432.png 855733322.434.png 855733322.435.png 855733322.436.png 855733322.437.png 855733322.438.png 855733322.439.png 855733322.440.png 855733322.441.png 855733322.442.png 855733322.443.png 855733322.445.png 855733322.446.png 855733322.447.png 855733322.448.png 855733322.449.png 855733322.450.png 855733322.451.png 855733322.452.png 855733322.453.png 855733322.454.png 855733322.456.png 855733322.457.png 855733322.458.png 855733322.459.png 855733322.460.png 855733322.461.png 855733322.462.png 855733322.463.png 855733322.464.png 855733322.465.png 855733322.467.png 855733322.468.png 855733322.469.png 855733322.470.png 855733322.471.png 855733322.472.png 855733322.473.png 855733322.474.png 855733322.475.png 855733322.476.png 855733322.478.png 855733322.479.png 855733322.480.png 855733322.481.png 855733322.482.png 855733322.483.png 855733322.484.png 855733322.485.png 855733322.486.png 855733322.487.png 855733322.489.png 855733322.490.png 855733322.491.png 855733322.492.png 855733322.493.png 855733322.494.png 855733322.495.png 855733322.496.png 855733322.497.png 855733322.498.png 855733322.500.png 855733322.501.png 855733322.502.png 855733322.503.png 855733322.504.png 855733322.505.png 855733322.506.png 855733322.507.png 855733322.508.png 855733322.509.png 855733322.511.png 855733322.512.png 855733322.513.png 855733322.514.png 855733322.515.png 855733322.516.png 855733322.517.png 855733322.518.png 855733322.519.png 855733322.520.png 855733322.522.png 855733322.523.png 855733322.524.png 855733322.525.png 855733322.526.png 855733322.527.png 855733322.528.png 855733322.529.png 855733322.530.png 855733322.531.png 855733322.533.png 855733322.534.png 855733322.535.png 855733322.536.png 855733322.537.png 855733322.538.png 855733322.539.png 855733322.540.png 855733322.541.png 855733322.542.png 855733322.544.png 855733322.545.png 855733322.546.png 855733322.547.png 855733322.548.png 855733322.549.png 855733322.550.png 855733322.551.png 855733322.552.png 855733322.553.png 855733322.555.png 855733322.556.png 855733322.557.png 855733322.558.png 855733322.559.png 855733322.560.png 855733322.561.png 855733322.562.png 855733322.563.png 855733322.564.png 855733322.566.png 855733322.567.png 855733322.568.png 855733322.569.png 855733322.570.png 855733322.571.png 855733322.572.png 855733322.573.png 855733322.574.png 855733322.575.png 855733322.577.png 855733322.578.png 855733322.579.png 855733322.580.png 855733322.581.png 855733322.582.png 855733322.583.png 855733322.584.png 855733322.585.png 855733322.586.png 855733322.588.png 855733322.589.png 855733322.590.png 855733322.591.png 855733322.592.png 855733322.593.png 855733322.594.png 855733322.595.png 855733322.596.png 855733322.597.png 855733322.599.png 855733322.600.png 855733322.601.png 855733322.602.png 855733322.603.png 855733322.604.png 855733322.605.png 855733322.606.png 855733322.607.png 855733322.608.png 855733322.610.png 855733322.611.png 855733322.612.png 855733322.613.png 855733322.614.png 855733322.615.png 855733322.616.png 855733322.617.png 855733322.618.png 855733322.619.png 855733322.621.png 855733322.622.png 855733322.623.png 855733322.624.png 855733322.625.png 855733322.626.png 855733322.627.png 855733322.628.png 855733322.629.png 855733322.630.png 855733322.632.png 855733322.633.png 855733322.634.png 855733322.635.png 855733322.636.png 855733322.637.png 855733322.638.png 855733322.639.png 855733322.640.png 855733322.641.png 855733322.643.png 855733322.644.png 855733322.645.png 855733322.646.png 855733322.647.png 855733322.648.png 855733322.649.png 855733322.650.png 855733322.651.png 855733322.652.png 855733322.654.png 855733322.655.png 855733322.656.png 855733322.657.png 855733322.658.png 855733322.659.png 855733322.660.png 855733322.661.png 855733322.662.png 855733322.663.png 855733322.665.png 855733322.666.png 855733322.667.png 855733322.668.png 855733322.669.png 855733322.670.png 855733322.671.png 855733322.672.png 855733322.673.png 855733322.674.png 855733322.676.png 855733322.677.png 855733322.678.png 855733322.679.png 855733322.680.png 855733322.681.png 855733322.682.png 855733322.683.png 855733322.684.png 855733322.685.png 855733322.687.png 855733322.688.png 855733322.689.png 855733322.690.png 855733322.691.png 855733322.692.png 855733322.693.png 855733322.694.png 855733322.695.png 855733322.696.png 855733322.698.png 855733322.699.png 855733322.700.png 855733322.701.png 855733322.702.png 855733322.703.png 855733322.704.png 855733322.705.png 855733322.706.png 855733322.707.png 855733322.709.png 855733322.710.png 855733322.711.png 855733322.712.png 855733322.713.png 855733322.714.png 855733322.715.png 855733322.716.png 855733322.717.png 855733322.718.png 855733322.720.png 855733322.721.png 855733322.722.png 855733322.723.png 855733322.724.png 855733322.725.png 855733322.726.png 855733322.727.png 855733322.728.png 855733322.729.png 855733322.731.png 855733322.732.png 855733322.733.png 855733322.734.png 855733322.735.png 855733322.736.png 855733322.737.png 855733322.738.png 855733322.739.png 855733322.740.png 855733322.742.png 855733322.743.png 855733322.744.png 855733322.745.png 855733322.746.png 855733322.747.png 855733322.748.png 855733322.749.png 855733322.750.png 855733322.751.png 855733322.753.png 855733322.754.png 855733322.755.png 855733322.756.png 855733322.757.png 855733322.758.png 855733322.759.png 855733322.760.png 855733322.761.png 855733322.762.png 855733322.764.png 855733322.765.png 855733322.766.png 855733322.767.png 855733322.768.png 855733322.769.png 855733322.770.png 855733322.771.png 855733322.772.png 855733322.773.png 855733322.775.png 855733322.776.png 855733322.777.png 855733322.778.png 855733322.779.png 855733322.780.png 855733322.781.png 855733322.782.png 855733322.783.png 855733322.784.png 855733322.786.png 855733322.787.png 855733322.788.png 855733322.789.png 855733322.790.png 855733322.791.png 855733322.792.png 855733322.793.png 855733322.794.png 855733322.795.png 855733322.797.png 855733322.798.png 855733322.799.png 855733322.800.png 855733322.801.png 855733322.802.png 855733322.803.png 855733322.804.png 855733322.805.png 855733322.806.png 855733322.808.png 855733322.809.png 855733322.810.png 855733322.811.png 855733322.812.png 855733322.813.png 855733322.814.png 855733322.815.png 855733322.816.png 855733322.817.png 855733322.819.png 855733322.820.png 855733322.821.png 855733322.822.png 855733322.823.png 855733322.824.png 855733322.825.png 855733322.826.png 855733322.827.png 855733322.828.png 855733322.830.png 855733322.831.png 855733322.832.png 855733322.833.png 855733322.834.png 855733322.835.png 855733322.836.png 855733322.837.png 855733322.838.png 855733322.839.png 855733322.841.png 855733322.842.png 855733322.843.png 855733322.844.png 855733322.845.png 855733322.846.png 855733322.847.png 855733322.848.png 855733322.849.png 855733322.850.png 855733322.852.png 855733322.853.png 855733322.854.png 855733322.855.png 855733322.856.png 855733322.857.png 855733322.858.png 855733322.859.png 855733322.860.png 855733322.861.png 855733322.864.png 855733322.865.png 855733322.866.png 855733322.867.png 855733322.868.png 855733322.869.png 855733322.870.png 855733322.871.png 855733322.872.png 855733322.873.png 855733322.875.png 855733322.876.png 855733322.877.png 855733322.878.png 855733322.879.png 855733322.880.png 855733322.881.png 855733322.882.png 855733322.883.png 855733322.884.png 855733322.886.png 855733322.887.png 855733322.888.png 855733322.889.png 855733322.890.png 855733322.891.png 855733322.892.png 855733322.893.png 855733322.894.png 855733322.895.png 855733322.897.png 855733322.898.png 855733322.899.png 855733322.900.png 855733322.901.png 855733322.902.png 855733322.903.png 855733322.904.png 855733322.905.png 855733322.906.png 855733322.908.png 855733322.909.png 855733322.910.png 855733322.911.png 855733322.912.png 855733322.913.png 855733322.914.png 855733322.915.png 855733322.916.png 855733322.917.png 855733322.919.png 855733322.920.png 855733322.921.png 855733322.922.png 855733322.923.png 855733322.924.png 855733322.925.png 855733322.926.png 855733322.927.png 855733322.928.png 855733322.930.png 855733322.931.png 855733322.932.png 855733322.933.png 855733322.934.png 855733322.935.png 855733322.936.png 855733322.937.png 855733322.938.png 855733322.939.png 855733322.941.png 855733322.942.png 855733322.943.png 855733322.944.png 855733322.945.png 855733322.946.png 855733322.947.png 855733322.948.png 855733322.949.png 855733322.950.png 855733322.952.png 855733322.953.png 855733322.954.png 855733322.955.png 855733322.956.png 855733322.957.png 855733322.958.png 855733322.959.png 855733322.960.png 855733322.961.png 855733322.963.png 855733322.964.png 855733322.965.png 855733322.966.png 855733322.967.png 855733322.968.png 855733322.969.png 855733322.970.png 855733322.971.png 855733322.972.png 855733322.975.png 855733322.976.png 855733322.977.png 855733322.978.png 855733322.979.png 855733322.980.png 855733322.981.png 855733322.982.png 855733322.983.png 855733322.984.png 855733322.986.png 855733322.987.png 855733322.988.png 855733322.989.png 855733322.990.png 855733322.991.png 855733322.992.png 855733322.993.png 855733322.994.png 855733322.995.png 855733322.997.png 855733322.998.png 855733322.999.png 855733322.1000.png 855733322.1001.png 855733322.1002.png 855733322.1003.png 855733322.1004.png 855733322.1005.png 855733322.1006.png 855733322.1008.png 855733322.1009.png 855733322.1010.png 855733322.1011.png 855733322.1012.png 855733322.1013.png 855733322.1014.png 855733322.1015.png 855733322.1016.png 855733322.1017.png 855733322.1019.png 855733322.1020.png 855733322.1021.png 855733322.1022.png 855733322.1023.png 855733322.1024.png 855733322.1025.png 855733322.1026.png 855733322.1027.png 855733322.1028.png 855733322.1030.png 855733322.1031.png 855733322.1032.png 855733322.1033.png 855733322.1034.png 855733322.1035.png 855733322.1036.png 855733322.1037.png 855733322.1038.png 855733322.1039.png 855733322.1041.png 855733322.1042.png 855733322.1043.png 855733322.1044.png 855733322.1045.png 855733322.1046.png 855733322.1047.png 855733322.1048.png 855733322.1049.png 855733322.1050.png 855733322.1052.png 855733322.1053.png 855733322.1054.png 855733322.1055.png 855733322.1056.png 855733322.1057.png 855733322.1058.png 855733322.1059.png 855733322.1060.png 855733322.1061.png 855733322.1063.png 855733322.1064.png 855733322.1065.png 855733322.1066.png 855733322.1067.png 855733322.1068.png 855733322.1069.png 855733322.1070.png 855733322.1071.png 855733322.1072.png 855733322.1074.png 855733322.1075.png 855733322.1076.png 855733322.1077.png 855733322.1078.png 855733322.1079.png 855733322.1080.png 855733322.1081.png 855733322.1082.png 855733322.1083.png 855733322.1086.png 855733322.1087.png 855733322.1088.png 855733322.1089.png 855733322.1090.png 855733322.1091.png 855733322.1092.png 855733322.1093.png 855733322.1094.png 855733322.1095.png 855733322.1097.png 855733322.1098.png 855733322.1099.png 855733322.1100.png 855733322.1101.png 855733322.1102.png 855733322.1103.png 855733322.1104.png 855733322.1105.png 855733322.1106.png 855733322.1108.png 855733322.1109.png 855733322.1110.png 855733322.1111.png 855733322.1112.png 855733322.1113.png 855733322.1114.png 855733322.1115.png 855733322.1116.png 855733322.1117.png 855733322.1119.png 855733322.1120.png 855733322.1121.png 855733322.1122.png 855733322.1123.png 855733322.1124.png 855733322.1125.png 855733322.1126.png 855733322.1127.png 855733322.1128.png 855733322.1130.png 855733322.1131.png 855733322.1132.png 855733322.1133.png 855733322.1134.png 855733322.1135.png 855733322.1136.png 855733322.1137.png 855733322.1138.png 855733322.1139.png 855733322.1141.png 855733322.1142.png 855733322.1143.png 855733322.1144.png 855733322.1145.png 855733322.1146.png 855733322.1147.png 855733322.1148.png 855733322.1149.png 855733322.1150.png 855733322.1152.png 855733322.1153.png 855733322.1154.png 855733322.1155.png 855733322.1156.png 855733322.1157.png 855733322.1158.png 855733322.1159.png 855733322.1160.png 855733322.1161.png 855733322.1163.png 855733322.1164.png 855733322.1165.png 855733322.1166.png 855733322.1167.png 855733322.1168.png 855733322.1169.png 855733322.1170.png 855733322.1171.png 855733322.1172.png 855733322.1174.png 855733322.1175.png 855733322.1176.png 855733322.1177.png 855733322.1178.png 855733322.1179.png 855733322.1180.png 855733322.1181.png 855733322.1182.png 855733322.1183.png 855733322.1185.png 855733322.1186.png 855733322.1187.png 855733322.1188.png 855733322.1189.png 855733322.1190.png 855733322.1191.png 855733322.1192.png 855733322.1193.png 855733322.1194.png 855733322.1197.png 855733322.1198.png 855733322.1199.png 855733322.1200.png 855733322.1201.png 855733322.1202.png 855733322.1203.png 855733322.1204.png 855733322.1205.png 855733322.1206.png 855733322.1208.png 855733322.1209.png 855733322.1210.png 855733322.1211.png 855733322.1212.png 855733322.1213.png 855733322.1214.png 855733322.1215.png 855733322.1216.png 855733322.1217.png 855733322.1219.png 855733322.1220.png 855733322.1221.png 855733322.1222.png 855733322.1223.png 855733322.1224.png 855733322.1225.png 855733322.1226.png 855733322.1227.png 855733322.1228.png 855733322.1230.png 855733322.1231.png 855733322.1232.png 855733322.1233.png 855733322.1234.png 855733322.1235.png 855733322.1236.png 855733322.1237.png 855733322.1238.png 855733322.1239.png 855733322.1241.png 855733322.1242.png 855733322.1243.png 855733322.1244.png 855733322.1245.png 855733322.1246.png 855733322.1247.png 855733322.1248.png 855733322.1249.png 855733322.1250.png 855733322.1252.png 855733322.1253.png 855733322.1254.png 855733322.1255.png 855733322.1256.png 855733322.1257.png 855733322.1258.png 855733322.1259.png 855733322.1260.png 855733322.1261.png 855733322.1263.png 855733322.1264.png 855733322.1265.png 855733322.1266.png 855733322.1267.png 855733322.1268.png 855733322.1269.png 855733322.1270.png 855733322.1271.png 855733322.1272.png 855733322.1274.png 855733322.1275.png 855733322.1276.png 855733322.1277.png 855733322.1278.png 855733322.1279.png 855733322.1280.png 855733322.1281.png 855733322.1282.png 855733322.1283.png 855733322.1285.png 855733322.1286.png 855733322.1287.png 855733322.1288.png 855733322.1289.png 855733322.1290.png 855733322.1291.png 855733322.1292.png 855733322.1293.png 855733322.1294.png 855733322.1296.png 855733322.1297.png 855733322.1298.png 855733322.1299.png 855733322.1300.png 855733322.1301.png 855733322.1302.png 855733322.1303.png 855733322.1304.png 855733322.1305.png 855733322.003.png 855733322.004.png 855733322.005.png 855733322.006.png 855733322.007.png 855733322.008.png 855733322.009.png 855733322.010.png 855733322.011.png 855733322.012.png 855733322.014.png 855733322.015.png 855733322.016.png 855733322.017.png 855733322.018.png 855733322.019.png 855733322.020.png 855733322.021.png 855733322.022.png 855733322.023.png 855733322.025.png 855733322.026.png 855733322.027.png 855733322.028.png 855733322.029.png 855733322.030.png 855733322.031.png 855733322.032.png 855733322.033.png 855733322.034.png 855733322.036.png 855733322.037.png 855733322.038.png 855733322.039.png 855733322.040.png 855733322.041.png 855733322.042.png 855733322.043.png 855733322.044.png 855733322.045.png 855733322.047.png 855733322.048.png 855733322.049.png 855733322.050.png 855733322.051.png 855733322.052.png 855733322.053.png 855733322.054.png 855733322.055.png 855733322.056.png 855733322.058.png 855733322.059.png 855733322.060.png 855733322.061.png 855733322.062.png 855733322.063.png 855733322.064.png 855733322.065.png 855733322.066.png 855733322.067.png 855733322.069.png 855733322.070.png 855733322.071.png 855733322.072.png 855733322.073.png 855733322.074.png 855733322.075.png 855733322.076.png 855733322.077.png 855733322.078.png 855733322.080.png 855733322.081.png 855733322.082.png 855733322.083.png 855733322.084.png 855733322.085.png 855733322.086.png 855733322.087.png 855733322.088.png 855733322.089.png 855733322.091.png 855733322.092.png 855733322.093.png 855733322.094.png 855733322.095.png 855733322.096.png 855733322.097.png 855733322.098.png 855733322.099.png 855733322.100.png 855733322.102.png 855733322.103.png 855733322.104.png 855733322.105.png 855733322.106.png 855733322.107.png 855733322.108.png 855733322.109.png 855733322.110.png 855733322.111.png 855733322.114.png 855733322.115.png 855733322.116.png 855733322.117.png 855733322.118.png 855733322.119.png 855733322.120.png 855733322.121.png 855733322.122.png 855733322.123.png 855733322.125.png 855733322.126.png 855733322.127.png 855733322.128.png 855733322.129.png 855733322.130.png 855733322.131.png 855733322.132.png 855733322.133.png 855733322.134.png 855733322.136.png 855733322.137.png 855733322.138.png 855733322.139.png 855733322.140.png 855733322.141.png 855733322.142.png 855733322.143.png 855733322.144.png 855733322.145.png 855733322.147.png 855733322.148.png 855733322.149.png 855733322.150.png 855733322.151.png 855733322.152.png 855733322.153.png 855733322.154.png 855733322.155.png 855733322.156.png 855733322.158.png 855733322.159.png 855733322.160.png 855733322.161.png 855733322.162.png 855733322.163.png 855733322.164.png 855733322.165.png 855733322.166.png 855733322.167.png 855733322.169.png 855733322.170.png 855733322.171.png 855733322.172.png 855733322.173.png 855733322.174.png 855733322.175.png 855733322.176.png 855733322.177.png 855733322.178.png 855733322.180.png 855733322.181.png 855733322.182.png 855733322.183.png 855733322.184.png 855733322.185.png 855733322.186.png 855733322.187.png 855733322.188.png 855733322.189.png 855733322.191.png 855733322.192.png 855733322.193.png 855733322.194.png 855733322.195.png 855733322.196.png 855733322.197.png 855733322.198.png 855733322.199.png 855733322.200.png 855733322.202.png 855733322.203.png 855733322.204.png 855733322.205.png 855733322.206.png 855733322.207.png 855733322.208.png 855733322.209.png 855733322.210.png 855733322.211.png 855733322.213.png 855733322.214.png 855733322.215.png 855733322.216.png 855733322.217.png 855733322.218.png 855733322.219.png 855733322.220.png 855733322.221.png 855733322.222.png 855733322.225.png 855733322.226.png 855733322.227.png 855733322.228.png 855733322.229.png 855733322.230.png 855733322.231.png 855733322.232.png 855733322.233.png 855733322.234.png 855733322.236.png 855733322.237.png 855733322.238.png 855733322.239.png 855733322.240.png 855733322.241.png 855733322.242.png 855733322.243.png 855733322.244.png 855733322.245.png 855733322.247.png 855733322.248.png 855733322.249.png 855733322.250.png 855733322.251.png 855733322.252.png 855733322.253.png 855733322.254.png 855733322.255.png 855733322.256.png 855733322.258.png 855733322.259.png 855733322.260.png 855733322.261.png 855733322.262.png 855733322.263.png 855733322.264.png 855733322.265.png 855733322.266.png 855733322.267.png 855733322.269.png 855733322.270.png 855733322.271.png 855733322.272.png 855733322.273.png 855733322.274.png 855733322.275.png 855733322.276.png 855733322.277.png 855733322.278.png 855733322.280.png 855733322.281.png 855733322.282.png 855733322.283.png 855733322.284.png 855733322.285.png 855733322.286.png 855733322.287.png 855733322.288.png 855733322.289.png 855733322.291.png 855733322.292.png 855733322.293.png 855733322.294.png 855733322.295.png 855733322.296.png 855733322.297.png 855733322.298.png 855733322.299.png 855733322.300.png 855733322.302.png 855733322.303.png 855733322.304.png 855733322.305.png 855733322.306.png 855733322.307.png 855733322.308.png 855733322.309.png 855733322.310.png 855733322.311.png 855733322.313.png 855733322.314.png 855733322.315.png 855733322.316.png 855733322.317.png 855733322.318.png 855733322.319.png 855733322.320.png 855733322.321.png 855733322.322.png 855733322.324.png 855733322.325.png 855733322.326.png 855733322.327.png 855733322.328.png 855733322.329.png 855733322.330.png
 
MICRO PROCESSOR
COMPONENTS LIST
Resistors:
R1,R15-R22,R25-R29 = 1k
5
R2,R24,R34,R35 = 4k 7
R3,R4,R6...R8,R10 = 10k
R5,R12 = 1k
R9,R11 = 470
R13 = 12k
R14 = 10
R23 = 33
R30 = 470k
R31,R32 = 270
R33 = 3k
3
P1 = 100k
preset
P2 = 10k
preset
Capacitors:
C1,C2,C3,C5,C6,C7,C10,C11,C12 =
100nF
C4 = 220pF
C8,C9 = 27pF
C13 = 470 µ F 25V radial
C14,C15,C16 = 47
µ
F 16V radial
Semiconductors:
D1 = 1N4007
D2-D7 = 1N4148
D8-D11,D16-D19 = LED, 3mm, yellow,
low current
D12-D18,D20,D21 = LED 3 mm, red, low
current
D22 = LED, 3 mm, green, low current
T1,T2,T3 = BC547
IC1 = 7805
IC2 = TL497AC
IC3 = PIC16F84
IC4 = 74HCT125
Miscellaneous:
K1 = mains adaptor socket, PCB mount
K2 = 9-way sub-D socket (female), angled
pins, PCB mount
K3 = DIN41612 connector, model B (Con-
rad Electronics # 741582)
K4 = 16-way SIL connector*
L1 = 100 µ H
S1,S2,S4,S8,S9,S10 = toggle switch, 1 c/o
contact, or 3-way pinheader with jumper
S3,S5,S6,S7 = pushbutton, e.g.,
ITT/Schadow type D6
X1 = quartz crystal socket with crystal*
Heatsink for IC1, e.g. type ICK35 (Fischer)
(Dau Components)
PCB, order code 010062-1
Disk, contains example programs, order
code 010062-11
meric LCD dot matrix module can be
fitted to allow the system to display
more complex information. This mod-
ule is based around the Hitachi
HD44780 controller, which has
become something of an industry
standard. The display is driven using
the E (enable) and RS (register select)
signals, which are connected to port
pins RA2 and RA3. The read/write
(R/W) input of the module is tied per-
manently to ground (GND), since it is
only rarely that read mode is wanted.
Trimmer P2 allows the display con-
trast to be set, and the backlight can
be turned on and off via switch S4.
The LCD controller can be enabled
and disabled via switch S9.
All the microcontroller pins as
well as the input power supply volt-
age and the regulated 5 V supply are
available on a 32-way DIN41612-
style female connector. Special appli-
cation circuits can be constructed on
low-cost prototyping board and con-
nected to the single-board computer
via a complementary 32-way male
connector.
Power for the single-board com-
puter comes from an external mains
supply connected via low-voltage
connector K1. The input voltage can
be anywhere between 9 V and 12 V.
The built-in fixed voltage regulator
IC1 produces a stabilised 5 V output.
LED D22 indicates when power is
applied. If the input reverse polarity
protection diode D1 and the regula-
tor are dispensed with, battery oper-
ation from four NiCd cells (4.8 V
total) is possible.
Construction of the circuit on the
printed circuit board shown in Fig-
ure 2 should present no problems;
sockets should be used for all ICs and
for the crystal. The circuit board —sur-
prisingly for a single-board computer
— is only single-sided and therefore
inexpensive. The price for this is 18
wire links in the well-spaced layout.
All 13 of the microcontroller’s port pins as
well as the power supply are brought to the
connector in the middle of the circuit board,
next to which, as can be seen from the main
photograph, the LC display is fitted. The elec-
trical connection to the display can be made
2/2002
Elektor Electronics
17
855733322.331.png 855733322.332.png 855733322.335.png 855733322.336.png 855733322.337.png
MICRO PROCESSOR
with a combination of SIL connectors or alter-
natively short wire links can be used. The
switches shown in the circuit diagram can be
replaced with jumpers.
Free programming
software
A wide selection of literature is available on
learning to program the PIC microcontroller
family. A few starting points are given in the
references, and the Internet is also a rich
source of information, with numerous articles
and items of hardware and software avail-
able. Also, almost every technical college will
have some information on their homepage
about the PIC microcontroller: just type
‘PIC16F84’ into your favourite search engine.
You will need some programming tools to
develop assembler programs. The Windows
program MPLAB.EXE (editor, assembler and
simulator) and the DOS programs
MPASM.EXE (assembler) and PSIM.EXE (sim-
ulator) produced by Microchip are recom-
mended. These are freeware and can be
freely downloaded from the Internet.
Datasheets for the microcontroller and numer-
ous example programs are also available.
One example of free programming soft-
ware is NTPicprog , which can be found at
http://home.swipnet.se/~w24528/NTPicprog
( Figure 3 ). ICPROG.EXE, available from
www.ic-prog.com also works well. When set-
ting up the hardware, the PICee system
appears as ‘JDM Programmer’ ( Figure 4 ). The
trusty PIP02 software is also available for
those who would rather work under DOS.
Once the source code for the program
(*.asm) has been prepared and successfully
converted to a *.hex file using the assembler,
this can be downloaded into the flash pro-
gram memory in the microcontroller.
A large number of example programs can
be found on the project software disk ref.
010062-1 .
Figure 3. The NTPicprog programming software.
Figure 4. Hardware settings using ICPROG.
Relevant Internet sites:
http://www.microchip.com
http://www.wolfgang-kynast.de/pic.htm
http://www.ludwig-geissler-schule.de/docs/picee/picee.html
(010062-1)
References:
Back to school
David Benson
Easy PIC’n
Publisher: Square 1
David Benson
PIC’n up the Pace
Publisher: Square 1
This circuit was developed and tested at the Ludwig-Geissler school in Hanau,
Germany with a particular view towards its use in teaching. The single-board
computer has been used there very successfully for several years in various
classes, both for training in the use of microcontrollers and in project work.
For a component cost of only about thirty pounds, it also offers the radio ama-
teur or electronics hobbyist an ideal platform for experimenting with and
developing ideas.
F. Volpe
PICs in Practice
Publisher: Elektor Electronics (Publishing)
18
Elektor Electronics
2/2002
855733322.338.png 855733322.339.png 855733322.340.png 855733322.341.png 855733322.342.png 855733322.343.png 855733322.344.png 855733322.346.png 855733322.347.png 855733322.348.png
 
Zgłoś jeśli naruszono regulamin