View previous topic :: View next topic |
Author |
Message |
atoo
Joined: 31 Jan 2014 Posts: 32
|
a question ? |
Posted: Mon Feb 17, 2014 11:20 pm |
|
|
Which is more Difficult shiftregister series or parallel?
what is the best?
for working with arrays
in microcontroladores ? |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Tue Feb 18, 2014 9:05 am |
|
|
Neither they do two different jobs.
I your case, you've got a small PIC, driving a lot of output pins.
So, you need a small No. of inputs (serial) and a larger No. of outputs (parallel), hence a serial to parallel shift register.
For a large No. of input switches you work the other way round.
You chooes the one for the job in hand.
Mike |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Tue Feb 18, 2014 10:22 am |
|
|
remmeber though...
getting data in/out in parallel will always be faster than serial
...so what method(serial or parallel) you use, remember to factor in speed(access to data) in your decision.
Also consider board layout(hardware),cost of extra devices,etc.
Often you can buy a bigger PIC for just a few cents more and more I/O pins is always better !
hth
jay |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
questão ? |
Posted: Wed Feb 19, 2014 5:49 pm |
|
|
then I'll practice parallel,
another question!
Which is correct?
this?
# Include <18f2550.h>
# Include <sanUSB.h>
or this?
# Include <sanUSB.h>
then the microcontroller can operate without the computer
this is the doubt !
about libraries
Charles francês joaõ pessoa PB |
|
|
|