@ sage.radachowskyShift registers do wonders for increasing digital I/O pins. A serial-in, parallel-out shift register with latching will let you use 3 uC pins to control any number of digital outputs.
Using a shift register that has latching as an option will make your life that much easier.It matters what the extra pins are for.
Expansion pins will be slower than native IO pins. Sometimes that matters and sometimes it does not; it depends on the project.
The 8255 can be difficult to work with. For one thing, if you change the direction parameters on any port, it sets all output ports to logic zero.
Shift registers aren't quite as fast as the 8255 but might be easier to work with. But you might need an additional latch chip if you want to avoid glitches on output pins during shifting.
Most expansion circuits will work on just about any microcontroller, as long as you watch voltage levels, such as between 3.3 and 5 volts.
It's hard to offer a circuit diagram without more information on what the project's needs are - speed, number of pins, input or output or both, whether temporary output glitches would be a problem.
Take a look at the bottom circuit on this page.@ sage.radachowsky
plz explain me how ?
if possible give ckt diagram..
Got ur idea..thanks..Take a look at the bottom circuit on this page.
I don't understand what you mean....Got ur idea..thanks..
Don't u think this ckt is not of serial in/parallel out ,but it's of serial in/diffrential parallel out..
(actuly serial in/parallel out is not possible in any case)
Let the boudrate(rate of data) be X in serial comm,when u convert it to parallel(of 8 bit) the rate of data would be X/8.I don't understand what you mean....
I'm talking about digital signals that have a low and high value.
The shift register allows you to fill up a series of latches in a serial way, and then all those latched values appear on output pins in parallel.
You can daisy-chain them together, as well, so you can have 8, 16, 24, 32... outputs all from the same 3 control pins of the microcontroller.
I've used this method a lot and it's very useful. It can also help on PCB layout because if the output pins are far from the microcontroller, then you only have to route 3 lines to the shift registers, and then those create the 8 or 16 ... pins at their outputs.
But usually, I tend to use a microcontroller with enough pins for the job.
Yes, it is true that the speed of the parallel output will be much slower than the speed of the serial input. This technique is not used for the highest-speed outputs. It is very useful, though, for things like strings of LEDs or strings of other kinds of actuators.Let the boudrate(rate of data) be X in serial comm,when u convert it to parallel(of 8 bit) the rate of data would be X/8.
so that u can not spell it as serial in/parallel out,but u need to say serial in/diff parallel out.
this's just for undersanding not relate to post(question) ..