Hey, I would just like you to know that the adval=PORTB thing worked. I guess my next step is to rewire it and recode it to use the software SEROUT command. Thanks again for all your help.