Hallo AduinoForum.cc,
i’m new on Arduino-programming.
Nevertheless, i would like to push some bytes to an SRAM. There for i want to set eight pins with a byte.
Either i’m blind or i have been searching with the wrong terms?
I just can not find a manual for my problem.
I stumbled across a rather dirty method:
int i;
void setup(){
DDRD = DDRD | B11111111;
}
void loop(){
for (i=0; i<256; i++){
PORTD = i;
delay(250);
}
}
Unfortunately this is missing the sixth bit (2 ^ 6)(?). It has also been recommended not to mess with this registers.
What i need are a few lines that i can output a byte on eight pins.
Or should i say goodbye to this method and do everything serially via a shift register?
Thank your suggestons -
derGistA