Pages: [1]   Go Down
Author Topic: using 8 i/o pins at same time.  (Read 368 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 20
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi i want to know how to use 8 of the digital i/o pins at the same time?

e.g. pins 1,2,3,4,5,6,7 and 8 has output value of
              1,0,1,0,0,1,0 and 1 (which will be keep changing)

how can i output this data [glow]simultaneously[/glow] without any delay between two output signals??

the command
int pin1 = 1 ;
pinMode(pin1, OUTPUT);
digitalWrite( pin1, HIGH);
will drive only one pin at a time. So how to drive multiple pins at the same time?

thanks in advance  smiley
« Last Edit: June 13, 2010, 03:37:51 am by bhags21 » Logged

Minnesota USA
Offline Offline
Sr. Member
****
Karma: 1
Posts: 323
Made it mahself outta sand 'n wahr.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You should look at this.

http://www.arduino.cc/en/Reference/PortManipulation

depending on the pins you pick and your board you can affect 8 pins at once.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 286
Posts: 25666
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Someone posted this recently:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1276417833
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: