binary output for an R/2R ladder.

The simplest way would be to put all the eight lines of the ladder on a single I/O port (like port C). You would then be able to output the value with a simple assignment...

PORTC = MyAnalogValue;

There's a description here that will hopefully get you started...

Good luck,
Brian