Professional Documents
Culture Documents
Multitasking Pins: Roland Plisch
Multitasking Pins: Roland Plisch
Each display is blanked before age to 5 V. This is a low dropout regulator The PIC software can be downloaded free
displaying the value to prevent ghosting. which can work down to 6 V hence juicing of charge from the Elektor website. The
A temperature sample is read every 30 s to the battery for the last drop of energy. The archive file number is 080418-11.zip. The
prevent the value displayed from changing thermometer may also be run from three software was developed using CCS C.
due to fluctuations in the temperature. An AA dry batteries in series with no series (080418-I)
LP2950 is used to regulate the supply volt- regulator.
Multitasking Pins
Roland Plisch bly types with rail-to-rail outputs). Suitable
U+ examples to use are the LM393 or LM311.
It’s entirely logical that low-cost miniature The resistances in the voltage dividers in
microcontrollers have fewer ‘legs’ than this circuit are uniformly 10 kilohms.
their bigger brothers and sisters – some-
R R
times too few. The author has given some Consequently input A lies at half the oper-
consideration to how to economise on High= CS1 CS1
ating voltage (2.5 V), assuming nothing is
pins, making them do the work of several. A1 connected to the input – or the microcon-
Low = CS2
It occurred that one could exploit the high- R
troller pin connected is at high impedance.
A
impedance feature of a tri-state output. In The non-inverting input of IC1A lies at two-
this way the signal produced by the high- thirds and the inverting input of IC1B at
impedance state could be used for exam- CS2 one third of the operating voltage, so that
High Z = no CS
ple as a CS signal of two ICs or else as a RD/ A2 in both cases the outputs are set at High
WR signal. state. If the microcontroller pin at input A
R R becomes Low, the output of IC1B becomes
All we need are two op-amps or compara- Low and that of IC1A goes High. If A is High,
tors sharing a single operating voltage of 5 080095 - 11
everything is reversed.
V and outputs capable of reaching full Low (080095-I)
and High levels in 5-V operation (prefera-
20 elektor - 7-8/2008