Read this..http://www.picbasic.co.uk/forum/show...8252#post88252

Read the datasheet

Pull some hair from the head... read some more datasheet...

Port A could have some extra features... also a search for "all digital" might give a few answers as well