init PORTD FOR 16F877A


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Thank you Acetronics. I am new to the forum, just registered yesterday. I thought it is not such a stupid question to ask for PORTD init, considering the fact that I already did the TRISE thing.
    Also it is good to know rules arround, and so please tell me where exactly this thread should be posted. I will try to repair my mistake.

    Thank you in advance,

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    The best place to ask questions on PIC asembly language would be on the Microchip web forum at http://www.microchip.com/forums/Default.aspx?

    This forum is for the MicroengineeringLabs PicBasic Pro & Picbasic compilers.

    The primary focus here is helping folks having problems with BASIC, but we do on occasion offer help with assembler.

    You should have external pull-up resistors holding your portd inputs high, with each button press grounding an input pin. If you don't have the external pull-ups that would explain erratic behaviour.

    Also - be sure on return from any called routine that you're in the proper bank to test portd pins.

    I would post all of your code on the Microchip forum for quicker help. It's hard for people to help if they can't see all of your code since the parts you don't show could be where the problem is.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts