ADCON1 must be = $0F. If =7 AN9 is still analog.

If you still have problem copy ALL your CONFIG fuse settings here.