Documente Academic
Documente Profesional
Documente Cultură
D3 D4 R3D2 C1 R1 5V
IC3 IC2b
H1
H2
R4 C2
1M
D1 9
36kHz: 5 - 6 3 4
CTR12 0 1
IC2 IC2c 7 D3
C6
1
5 6 10 6 J1
1 + 2
R2 X1 C3 5 15 16 IC2d
C3 3
X1 3 13 14 9 8 D4
R1
4 1
J1
15p
2 11 12
5 R4
C5 CT 4 9 10
ROTKELE )C(
C1 C2
6 391
IC3 13 7 8 IC2e
7
C7
CT=0 9
15 1 2
C8 C4 IC4
5V 10
1 IC2f
11
R5 13 12
D5 1
L1
+ 74HCT4040
H3
H4
0 D6
5V
1k
R3
IC1
IC2 = 74HCU04
TORX173
3 D1 D2
47μH
IC2a
R2
1 1 2 RECEIVER TRANSMITTING
1 1k5 ON
004021-1 (C) ELEKTOR
C4
2 4 5 6
100n
IC4
> 9V D6 7805 5V
R5
1N4002
1k
C8 C7 14 C6 16 C5
D5
IC2 IC3
220μ 4μ7 7 8
25V 63V 100n 100n
POWER
004021 - 11
SUMMER CIRCUITSCOLLECTION
drive current for the IR LEDs D3 and D4 (around 50 mA). A sig- COMPONENTS LIST Semiconductors:
nal from the counter is also indicate that data are being trans- D1 = high-efficiency LED, green
mitted, via LED D2. This has essentially the opposite function Resistors: D2 = high-efficiency LED, red
of LED D1, which goes out when D2 is blinking. R1 = 1MΩ D3,D4 = LD271
In the oscillator, capacitor C3 is used instead of the usual resis- R2 = 1kΩ5 D5 = high-efficiency LED, yellow
R3,R5 = 1kΩ D6 = 1N4002
tor to compensate for the delay in IC2c. As a rule, this capac- R4 = 39 Ω IC1 = TORX173 (Toshiba)
itor is needed above 6 MHz. It should have the same value as IC2 = 74HCU04
Cload of the crystal, or in other words 0.5C1 (where C1 = C2). Capacitors: IC3 = 74HCT4040
At lower frequencies, a 1kΩ to 2kΩ2 resistor can be used in C1,C2 = 33pF IC4 = 7805
place of C3. C3 = 15pF
A yellow LED is used for the power-on indicator D5. The cur- C4,C5,C6 = 100nF ceramic Miscellaneous:
rent through this LED is somewhat higher than that of the C7 = 4μF7 63V radial J1 = 16-way double contact row,
C8 = 220μF 25V radial plus jumper
other LEDs. If you use a red high-efficiency LED instead, R5
X1 = 18.432MHz quartz crystal
can be increased to around 3kΩ3. Inductors:
The circuit draws approximately 41 mA in the idle state when L1 = 47μH
the receiver is on. If the receiver is switched off, the transmit-
ter emits light continuously, and the current consumption rises
to around 67 mA.
The PCB shown here is unfortunately not available ready-
made through the Publishers’ Readers Services.
(004021-1)
002 ESR Measurements
T1 = BUZ10,
1...2V BUZ100, D
BUK455
R1
1k
R2
11
G S
5W D
D C
G T1
Capacitor
Under Test
S
004069 - 11
K. Walraven mula, but as you can see from the oscillogram, the voltage first
In a switch-mode power supply, the quality of the output volt- drops quickly, after which the expected exponential curve
age depends strongly on the quality of the electrolytic capac- appears. This fast initial drop is due to the ESR of the capaci-
itors that are used. Here the effective series resistance (ESR), tor, which produces a voltage drop equal to the product of the
which is the internal ‘ohmic’ impedance of the capacitor, is one resistance and the discharge current. The greater the voltage
of the most important factors, since large currents are drop, the poorer the capacitor.
involved. It is rather difficult to exactly measure the ESR, but if If the initial voltage drop is approximately equal to half of the
you only want a quick idea, or you want to compare different charge voltage, as in this case, then we can deduce that the
families of capacitors, the illustrated simple measurement ESR is approximately equal to the discharge resistance of 1 Ω.
setup is very suitable. This is actually a relatively good value for a small, inexpensive
The capacitor under test is charged via the 1-kΩ resistor (R1) 10-μF electrolytic capacitor. As a general rule, you can assume
until its voltage is the same as the applied supply voltage. You that the ESR decreases proportionally as the capacitance
can then calculate the ESR using the formula (U1/U2) – 1 (see increases, and that it also decreases slightly as the voltage on
trace 1 of the oscillogram). This formula is very simple, since the capacitor increases.
we have chosen a value of 1 Ω for R2. The values of the sup- You can drive the FET directly from a pulse waveform genera-
ply voltage and R1 are not critical, since the measurement is tor, if it can deliver a short positive pulse to the gate with an
relative (as shown by the formula). The capacitor is discharged amplitude of at least 6 V (see trace 2). The repetition interval
via a 1-Ω resistor and a power FET. You would expect the dis- must be 100 to 1000 times as long as the width of the positive
charge to occur according to the well-known exponential for- pulse, since the capacitor will otherwise not have enough time
470k
(004038)
004 Heatsink Calculations
K. Walraven
Making heatsink calculations has always been a bit of a nui-
sance. This sample spreadsheet makes life easier. Its main
advantage is that you can see at a glance which heatsink you
need and how hot it will become.
First you have to enter a certain amount of data. Reasonable
default values are already present, so you can simply keep
what is already present for anything that you don’t know.
Let’s have a look at the various fields. You start with the power
that the transistor must handle, in watts. You can calculate
this by multiplying the voltage across the transistor by the cur-
rent through the transistor. Next comes the thermal resistance.
This differs for each type of transistor and package, so you will
have to look it up on the manufacturer’s data sheet under Rthjc
(junction to case). A 7805 in a TO220 package, for example,
has a value of 4, while a 2N3055 in a T03 package has a value
of 1.5. A modern component, such as the Siemens BUZ100 in
a TO220 package, has the unbelievably low value of only 0.6!
After this, you need to know the thermal resistance value for
the insulator (if one is used). If no insulator is used, enter a degrees is usually the maximum allowed value (175 is only for
zero. A few typical values are: flexible plastic: 0.4; aluminium the most recent components), and 125 is a safer value that is
oxide (hard, white, 1 to 2 mm thick): 0.3; mica: 0.4. In addition, always acceptable.
it makes a difference whether or not heat-conducting paste is However, you may want to avoid having the heatsink become
used. Here you can only select between yes (1) and no (0). The too hot. According to safety regulations, any heatsink that is
spreadsheet will then automatically fill in either 0.1 or 0.5, exposed to touch must not be hotter than 60 degrees. A
respectively. heatsink that becomes hotter than this must be protected
Next, enter the desired maximum temperature. For example, against being touched. If you don’t care about this, you can
the internal temperature of the transistor may not be allowed enter a higher value here.
to be higher than 125, 150 or 175 degrees. You can find this The program now displays a result consisting of four values.
value on the data sheet of the component in question (maxi- The first is the required heatsink specification in degrees per
mum junction temperature). If you don’t know the value, 150 watt. This represents the larger of the two heatsinks required
100k
100k
MAX4322 4
itor C1 and terminated with a test probe. The other side is con-
MAX4322
nected to an earth lead and to a convenient earth point. IC3
amplifies the low voltage level at the output of IC2 and drives S2
10k
amplification factor is 10. The internal impedance of P1 is * 1μ
GND 16V
2.2 kΩ. Alternatively a digital multimeter can be used in place
of P1, in this case resistor R7 (2-20 KΩ) can be omitted. Low
Current LED D2 indicates that the electroscope is on. U–
The operational amplifiers used here are MAX4322 from
Maxim. The common mode input voltage for these devices can
U+
go to the supply rails; likewise the outputs will drive from rail C3
R4 R6 R8
5601
100k
5k6
to rail. The maximum supply voltage is 6.2 V, hence the need for
zener diode D1 to limit the supply voltage. A full data sheet 1μ
16V 3...5mA
can be obtained from www.maxim-ic.com. 7 3
The operational amplifier IC1 produces a symmetrical sup- 6 C6
D1 S1
IC1
ply with a centre rail (earth) from the 9-V battery. The supply 2
BT1
current for the electroscope is in the order of 5 mA, most of 4 4μ7 6V2
16V
which is used by the zener diode D1. Alternatively, the oper- MAX4322
ational amplifiers can be replaced by a type that can operate at 9V
a higher supply voltage. For example IC2 and IC3 can be R5 D2
replaced by a single (dual op-amp) TLC272 (see the DIL out- C4 C5
100k
line for this device to assign the new pins). IC1 can be 1μ 1μ
red
16V 16V rood
replaced by a TLC271 (pin 8 should in this case be connected U–
to earth and pins 1 & 5 left unconnected). The maximum sup- 004011 - 11
(004011)
Table 1. 004085-1
AUD_EXT connector pin assignments for the SB Live! Player 1024.
H1
H2
K1
7 GND Earth
8 GND Earth K3
9 SPDIFO#3 S/PDIF output 3 JP2
10 GPO1 Output 1 (general purpose)
11 GPO2 Output 2 (general purpose)
12 GND Earth
SBLive! 1024
14 GND Earth
H3
H4
1-580400 004085-1
15 GP_SPDIFIN#1 S/PDIF input 1 ROTKELE )C( (C) ELEKTOR
16 GND Earth
17 SPDIFO#0 S/PDIF output 0
18 GND Earth SPDIFO#2
SPDIF_IN GP_SPDIFIN#2
19 SPDIFO#1 S/PDIF output 1
20 GND Earth K2 K1
2k0
C3 C1
step-down or ‘buck’ converter. The ‘switcher’ is used to con- 1N5818
vert a +12-volt car battery voltage down to +3 volts for use 470μ R3 470μ
2k7
with the personal hi-fi’s and handheld games for the author’s
two boisterous children on long car journeys. Note at under
ten years of age, children will rarely be hi-fi aficionado’s and
are generally not concerned with any noise generated by the
‘switcher ‘circuit. 000014 - 11
1M
68k
R7
tle bit by R9. C7 8 - 161
220k
1M
5 & 3 4 9 & 13 & 4k7
monostable time constant of 2 & 6 &
R5 and C5. A Low level on pin IC1a
1 R6 BC548
3 C6
4 of IC1 blocks the sound gen- 2 &
R9
220k
R2 2μ2
erator. After the time delay
417
C4
determined by R4 and C4 has
1μ
expired, the loudspeaker once 47k
5V
R1 R2 R3
471
4k7
417
IC2
C1 TOTX173
3
R4
220μ 25V IC1 2
2 8k2
4
3
C2 1
1
SFH506 100n
-36
IC3
D2
> 9V 1N4002 78L05 5V
R5
3k3
C4 C3
D1
220μ 4μ7
25V 63V
POWER
004020 - 11
T. Giesberts
There are various types of remote-control extenders. Many of 0 +
D2
H1
H2
nal from one room to the next. Here we use a fibre-optic cable. R1
IC3
C3
The advantage of this is that the thin fibre-optic cable is eas- C4
ier to hide than a 75-Ω coaxial cable, for example. An optical
ROTKELE )C(
(C) ELEKTOR
R4
R3
R2
004020-1
pact. You can use a few metres of inexpensive plastic fibre- 1-020400 004020-1
100k
sons who want to experiment 33k 2 K3 L
R6 R9
with audio. For example, you C1
6
10k IC2a
1
1001
7
can determine whether your 10V
2
IC1b
3
1 5
own audible threshold for 220n IC1a C2
3
noise is different with and
2μ2
without music, or whether a T1 CW R2 R4 CW
IC1, IC2 = NE5532
particular CD sounds better
10k
10k
P1 P2
with a little bit of noise. How- 10k
ever, since this circuit pro- BC557B 100k
R10 R12
duces white noise, it can also
10k 10k
be used for test measure- IC3
ments, such as comparing the 15V 78L12 12V
R K2 6 K4 R
R11 R13
sounds of different loudspeak- 7
10k IC2b 1001
ers, measuring filter charac- C8 C4 8 C6 8 5
C3
teristics and so on. IC1 IC2
470μ 4 4
The measured characteristics, 25V 100n 100n 10n
-15
-20
-25
-30
-35
-40
-45
d
B
r
-50
THD + N (1 kHz, P2 min.) < 0.0005 %
-55
-70
Noise level (P1 min. / P2 max.) – 88 dB
-75
-80
Noise level (P1 max. / P2 max.) – 25 dB (112 mVeff)
-85
Noise level (P1 max. / P2 max. / B > 500 kHz) – 10.5 dB
-90
Hz
2k 5k 10k 20k 50k 90k
004089 - 12
Current consumption 21 mA
SUMMER CIRCUITSCOLLECTION
L2
2b
16 14 14 1 T3 L1 T4
IC2d R2 <0A5 R4
IC1 IC2 IC3 IC4 IC3c 13 d c
9 11 1c 10k 10k
8 7 7 8 10 12 *1 2x
8 =1 BC517
1b
004086 - 11
K. Walraven (text) and must be reversed. We thus need an inverted signal in place of
R.T.J.M. van der Heijden (design) 1a. Fortunately, this is available in the form of 1d. The same
situation applies to 1b (1c), 2a (2d) and 2b (2c). In this case,
The subject of stepper motors is clearly very popular, with IC4 is not necessary.
many reader responses to every published article. A design Stepper motors are often made to work with 12 V. The logic
for a unipolar controller appeared in the May 1999 issue, and ICs can handle voltages up to 15 to 18 V, so that using a sup-
now we present a bipolar version. First, we want to explain ply voltage of 12 V or a bit higher will not cause any problems.
how such a controller works and what’s involved. A bipolar With a supply voltage at this level, the losses in the bridge cir-
motor has two windings, and thus four leads. Each winding cuits are also not as significant. However, you should increase
can carry a positive current, a negative current or no current. the resistor values (to 22 kΩ, for example). You should prefer-
This is indicated in Table 1 by a ‘+’, a ‘–‘ or a blank. ably use the same power supply for the motor and the con-
A binary counter (IC1) receives clock pulses, in response to troller logic. This is because all branches of the bridge circuit
which it counts up or down (corresponding to the motor turn- will conduct at the same time in the absence of control sig-
ing to the left or the right). The counter increments on the pos- nals, which yields short-circuits.
itive edge of the pulse applied to the clock input if the up/dwn (004086-1)
input is at the supply level, and it decrements if the up/dwn
input is at earth level. The state of the counter is decoded to
produce the conditions listed in Table 2. Table 1. Driving the windings.
Since it must be possible to reverse the direction of the cur- Phase 2 1 2 3 4 5 6 7 8
rent in the winding, each winding must be wired into a bridge Winding 1 + + – – – +
circuit. This means that four transistors must be driven for Winding 2 + + + – – –
each winding. Only diagonally opposed transistors may be
switched on at any given time, since otherwise short circuits
would occur.
At first glance, Table 2 appears incorrect, since there seem to
always be four active intervals. However, you should consider Table 2. Decoded counter states.
that a current flows only when a and c are both active. Phase 1 2 3 4 5 6 7 8
The proper signals are generated by the logic circuitry, and 1a + + + +
each winding can be driven by a bridge circuit consisting of 1b + + + +
four BC517 transistors. Two bridge circuits are needed, one for 1c + + + +
each winding. The disadvantage of this arrangement is that 1d + + + +
there is a large voltage drop across the upper transistors in 2a + + + +
particular (which are Darlingtons in this case). This means 2b + + + +
that there is not much voltage left for the winding, especially 2c + + + +
with a 5-V supply. It is thus better to use a different type of 2d + + + +
bridge circuit, with PNP transistors in the upper arms. This of
course means that the drive signals for the upper transistors
SUMMER CIRCUITSCOLLECTION
200μH
D12
D2 D6 D13
LM2585T-ADJ 10V
D11
IC1 D7 D14
5 4 D3
VIN SWITCH
10V
LM2585T- D10
ADJ 2 D8 D15
D4
FBACK
10V
COMP GND D9
1 3 D5
10V
R1
1k2
123 45
C1 C2 C3
R2
681
100μ 680n 100μ
16V 63V
004024 - 11
IC1 D6...D15
D1 H3
H4
C1
D2
D4
C2
R1
D3
C3
D5
004024-1
H1
H2
1-420400 004024-1
ROTKELE )C( L1 R2 (C) ELEKTOR
015 Low-Noise Microphone Amplifier
H. Steeman
15V
D1 R1
The signal from a microphone is two weak for a standard line C2 C3
input. This low-noise DC-coupled microphone amplifier pro-
2501
10n 10μ
vides a solution for anyone who wants to connect a micro- T2
phone to his or her hi-fi installation. As can be seen from the
schematic diagram, a good circuit does not have to be com-
plex. A differential amplifier is built around T1 (MAT-03E), 2N2907A
which is a low-noise dual transistor. The combination of T2 3 T1 5
U in R6
and LED D1 forms a constant-current source for the input 2 6
MAT-03E 1001
stage. A low-noise opamp (OP-270E) amplifies the difference R5
C1
1 7 OP-270E
10k
27k
4k7
type 4043 enable the outputs IC1 = 4093B 14 C1 16 C4 16
8 9 5
R3 EN
clock enable on pin 13.
4M7
CTRDIV10/ 0 3
Counter outputs Q5 to Q8 are DEC 2
1
connected to the reset inputs IC1d IC2 4 4
12 2 1S 2
of the latches, so as IC2 incre- 11 14 7 3 1Q
13 & 3 1R
& +
10 6 J1
ments, the latches are reset in 4 2S 9
C3 13 1 7 2Q
the opposite sequence. 5...15V 5 2R
5 12
The count is finally halted 4017B 6 3S 10
1μ 16V 6 11 3Q
C2 7 3R
at Q9 by IC1c, which again 15 9 14
CT=0 8 4S 1
removes the clock enable sig- 11 15 4Q
22μ 16V 9 4R
nal. Weak pull-up resistors 12
R2 CT*5 4043B
(R4-R7) are used on the latch 1M
‘reset’ inputs to prevent unde-
004018 - 11
fined start conditions.
(004018-1)
017 ±5-V Voltage Converter
G. Kleine C1 C3
The line numbers are not necessary; they have only been
added for reference. In addition, there are a number of libraries
available with routines such as pic I/O, delays, i2c, asych, ran-
dom, hd44780 (LC display), I/O extensions, math and so on.
(004096-1)
019 Simple Touch Pad Dimmer
B. Kainka
La1
Using a Power-FET it is possible to build a very simple touch
dimmer for low voltage lamps. Two drawing pins are used
S1 BT1
here as the touch contacts. The electrical resistance of your
C1
skin is in the order of 100 kΩ to 1 MΩ. The circuit operates as
an integrator with a capacitor in its negative feedback path. 100n 6V
This configuration gives a relatively linear control character-
T1
istic. Once you have selected a brightness level, it will be S2
maintained for hours if you use a low leakage (foil) capacitor.
Another feature of this circuit is that the harder you press on BUZ10
the contacts, the quicker the lamp brightness changes.
(004037)
004037 - 11
IC2
IC1
S1 9 AD0
CTR14 0
CTR12
7 8 9 7 AD1
3 1
C1 5 7 10 10 6 AD2
100p 4 + 2
4 6 11 5 AD3
5 3
11 !G 6 5 12 5V 3 AD4
R2 P1 R10 RCX 6 4
K1 10 14 4 13 R12 2 AD5
1k IC7 10k RX + 7 5
CT CT
10k
1 6 5 9 13 3 14 4 AD6
25k R11 CX 8 6
D1 CW 15 2 15 13 AD7
4k7 9 7
1 1 16 MODE 12 AD8
11 8
1N4148 2 11 14
2 4 12 12 CT=0 9
4N28 CT=0 3 15
13 10
R3 1
11
K2 1k IC8
1 6 5
4060 5V
D2 4040
1N4148 C8 C5
2 4 5V
4N28 C9
5V 10μ 63V 100n
R4
K3 1k IC9 1 28 10μ
1 6 5 2
D3 R1 1 8x 10k VPP AD0 11 MUX K9
AD3 10 0 1 V+ 16
A0 AD1 10 0 C6 C1+
AD4 9 G 1
A1 AD2 9 7
1N4148 AD5 8 2 3
IC5 6
2 4 A2 10μ C1–
11 4
4N28 AD6 7 D0 0 11 14 2
2 3 4 5 6 7 8 9 A3 12 3 5 T1IN RS1OUT
R5 AD7 6 IC3 D1 1 10 7 7
K4 A4 13 2 IC4 T2IN RS2OUT
1k IC10 AD8 5 D2 2 9 8 3
1 6 5 A5 15 1 3 74HC151 R2OUT RS2IN
4 D3 12 13 8
D4 A6 EPROM R1OUT RS1IN
16 15 6
3 D4 4 4 4
A7 17 14 C7 C2+
25 D5 5 9
1N4148 A8 27C256 18 13 MAX232
2 4 24 D6 6 5 15 5
4N28 A9 10μ C2–
19 12
21 D7 7 V-
R6 A10 7
K5 23 EN 6
1k IC11 A11 C10
1 6 5 2
A12
D5
26
A13 10μ
MODE 27
A14
1N4148
2 4 OE CE
4N28
22 14 20
R7
K6 1k IC12
1 6 5
D6
1N4148
2 4
4N28
R8
K7 1k IC13
1 6 5 IC6
D7 12mA D9 7805 5V
1N4148 1N4001
2 4
4N28
BT1
R9
16 C11 16 16
K8 1k IC14 C12 C2 C3 C3 C4
1 6 5 9...12V IC1 IC2 IC4
D8 330n 100n 8 8 8
100n 100n 100n 100n
1N4148
2 4
4N28
SUMMER CIRCUITSCOLLECTION
ROTKELE )C( 1-620400 K9 Table 1. ASCII Codes & bit values
R1
IC7
CHAR ASCII D7 D6 D5 D4 D3 D2 D1 D0
C11
K1
R2 D1 CR 13 0 0 0 0 1 1 0 1
IC2
LF 10 0 0 0 0 1 0 1 0
IC8
‘C’ 67 0 1 0 0 0 0 1 1
K2
IC3
R3 D2
‘H’ 72 0 1 0 0 1 0 0 0
‘0’ 48 0 0 1 1 0 0 0 0
IC9
K3
R4 D3 ‘1’ 49 0 0 1 1 0 0 0 1
C5 ‘2’ 50 0 0 1 1 0 0 1 0
IC4
IC10
‘3’ 51 0 0 1 1 0 0 1 1
K4
C6 C9
R5 D4 ‘4’ 52 0 0 1 1 0 1 0 0
C8
‘5’ 53 0 0 1 1 0 1 0 1
IC11
R12 C7
K5
‘6’ 54 0 0 1 1 0 1 1 0
IC5
R6 D5 C3
S1
C4 ‘7’ 55 0 0 1 1 0 1 1 1
IC12
‘:’ 58 0 0 1 1 1 0 1 0
K6
R7 D6 SP 32 0 0 1 0 0 0 0 0
IC1
C10
SYNC 255 1 1 1 1 1 1 1 1
C1
P1
IC13
C12
K7
R11
R8 D7
D9 IC6
IC14
R10
K8
004026-1 C2 0 +
R9 D8
COMPONENTS LIST
Resistors:
R1 = 10kΩ 8-way SIL array
R2-R9 = 1kΩ
R10,R12 = 10kΩ
R11 = 4kΩ7
P1 = 25kΩ preset H
Capacitors:
C1 = 100pF
C2-C5,C11 = 100nF
C6-C10 = 10 μF radial
C12 = 330nF
Semiconductors:
D1-D8 = 1N4148
D9 = 1N4001
IC1 = 4060
IC2 = 4040
IC3 = 27C256 (see text for programming)
IC4 = 74HC151
IC5 = MAX232
IC6 = 7805
IC7-IC14 = 4N28 of CNY17-2
Miscellaneous:
K1-K8 = 2-way PCB terminal block, raster 5mm
K9 = 9-way sub-D socket (female), PCB mount
004026-1 (C) ELEKTOR
S1 = 8-way DIP switch
sion effect. In this way the 8 inputs become TTL compatible. The number of 512-bit blocks (packets) equals the number
IC1, a CD4060, with the help of C1, P1, R11 and R10, forms of different combinations of CH0 to CH7 and MODE, and can
a bitrate generator for 150, 300, 600, 1200, 2400, 4800 or be calculated from the following formula :
9600 bps. Preset P1 needs to be adjusted to the desired bau-
drate — an accuracy of 1-2% is required! The bitrate is selected Memorysize = 512 packets*512 bits/packet
using DIP switch S1. The CD4040 works as a 9-bit binary = 256 Kbits = 32 Kbytes
counter. The three LS bits of the counter outputs (AD0, AD1,
AD2) drive the selection inputs of multiplexer IC4 (74HC151). The data encoding unit consisting of IC1- IC4 transmits 512-
The other counter bits (AD3-AD8) drive the LS address bits of bits packets (coming from the multiplexer output). The data in
the EPROM (A0-A5). The highest EPROM address line, A14, is the transmitted packet depends directly on the logic states of
connected to one of the DIP switches in S1 which defines the lines CH0 to CH7 and MODE.
data transmission mode (TTY or BIN). The power supply includes a 7805 regulator so that the card
With the above connections counter IC2 sweeps a range of will not need a separate regulated power supply. Circuit IC5
512 bits (64 bytes) of the total of 256 kBits (32 Kbytes) con- (a MAX232) works as an RS232 Driver/Receiver, converting the
tained in the EPROM. multiplexer’ s output data from TTL to RS232 compatible.
SUMMER CIRCUITSCOLLECTION
With the EPROM programmed with the right data, the circuit representing CH7, and LS Bit, CH0).
will produce messages (packets), through the RS-232 protocol,
that will inform us for the logic states of the card’s inputs. The These two modes are used in different cases. In cases where
transmission used by this card is 8 data bits, 1 stop bit and we want just to see the logic states of the input we just set
no parity. Assuming an ‘A’ is to be sent, and that your PC runs the card in TTY mode and we use a terminal program as Telix,
a terminal simulation program receiving (via the RXD pin of its Procomm Plus, Hyper Terminal etc. In cases where we want
serial port) the following 10 bits ‘0100000101’, then it will print to do some data logging or to compose a data acquisition &
on its screen the character ‘A’. control system with other DAQ & control cards then we just
This card transmits the logic states of its inputs in one of set the card in BIN mode (because the decoding of the data is
two modes, TTY (teletype) or BIN (binary). easier done by dedicated software).
In TTY Mode, the card transmits the following message to The characters, their ASCII codes and their bit values, as used
the computer: in the two modes are shown in Table 1. The bitstreams that
must be transmitted for each character appear in Table 2.
<SYNC>,<SYNC>,<CR>,<LF>,’CH0:X’,<SP>,’CH1:X’, The contents of the EPROM are created by a program
<SP>,’CH2:X’,<SP>,’CH3:X’,<SP>, (EPROMFMP.BAS) developed in Quick Basic, which is avail-
‘CH4:X’,<SP>,’CH5:X’,<SP>,’CH6:X’,<SP>,’CH7:X’ able from the author’s website. The program first makes a tem-
porary file that contains all data to be written in the EPROM
Where <SYNC> is the character with ASCII code 255, used in bit format (08DICARD.TMP). Next, it converts this file into
to synchronize the computer. Reception of this character (from byte format (08DICARD.BIN) and deletes the temporary file.
the computer) causes a space to appear on the screen. <CR> Finally, it runs an external program (BIN2HEX.EXE) and
and <LF> are ‘carriage return’ and ‘line feed’ with ASCII adapts the file from Binary to IntelHex format
codes 13 and 10 respectively, and <SP> is the ‘space’ char- (08DICARD.HEX). To program your own EPROM, you may use
acter with ASCII code 32. Reception of this character (from the 08DICARD.BIN or 08DICARD.HEX file.
computer) causes a space to appear on the screen. Finally, X Finally, the mode and bit rate selection on S1 is shown in
is the logic state of each input, which will cause a ‘1’ or a ‘0’ Table 3. The PCB designed for this project is unfortunately not
to appear on the screen. available ready-made through the Publishers’ Readers Ser-
In BIN Mode, the card transmits the following message to the vices.
computer: All software you will need to complete this project may be
downloaded free of charge from the author’s website at
<SYNC>,<SYNC>,<DATA BYTE> http://members.xoom.com/robofreak/download/08dicard.htm
Also, for other projects developed by Mr. Vastianos, visit this
Where <SYNC> is as above and <DATA BYTE> is the char- address:
acter with an ASCII code equal to the numerical value of the http://members.xoom.com/robofreak/
byte built from the logic states of the inputs (with the MS Bit (004026-1)