I added "TRISB = 0" and still read approximately 2.5V at portb.7

Thanks,
T