This page: http://www.arduino.cc/en/Reference/PortManipulationHas a section that includes: //See the bitwise operators reference pages and The Bitmath Tutorial in the Playground PORTB is the register for the state of the outputs. For example; PORTD = B10101000; // sets digital pins 7,5,3 HIGH You will only see 5 volts on these pins however if the pins have been set as outputs using the DDRD register or with pinMode().No, you will then see +5vdc on those pins that are set to 1 in the PORTD register as that will enable the internal pull-up resistor for that pin while in input mode. However it will not be able to source very much current at all as it's like a 40K value resistance, but a meter will read +5vdc even in input mode. The pins set to 0 while in input mode will be floating and the meter reading will be misleading or invalid at best.Lefty PINB is the input register variable It will read all of the digital input pins at the same time.It might be more clear if the PORTB reference was changed to PORTD and PINB was changed to PIND.
Retrolefty,I am new to this forum. Are you adding another correction to the same page, then?
Lefty,Sorry, i am confused. Are you offering a correction to the correction I suggested?The note you added is before my suggestion ( see the very last sentence ). I can't tell if my suggestion is in error or if you are also correcting the same page I am, for a different issue.If you click on the link I provided, you will see the note you have added would be a correction for the original page. I didn't write the voltage stuff, it is already there.