Problem with port A of 16f913


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: Problem with port A of 16f913

    First, TRISA=1 is not what you want. You want to set pins 2 and 5 as input:

    TRISA=%00100100

    Start counting from right, 0 to 7.

    Next, keep things simple. Make a copy of this program and remove all code after MAIN.

    Then make 2 LEDs turn on and off by pressing the 2 inputs buttons.

    Once that works, add the rest a bit at a time.

    Robert

  2. #2
    Join Date
    Sep 2014
    Posts
    25


    Did you find this post helpful? Yes | No

    Default Re: Problem with port A of 16f913

    Thanks sir.

Similar Threads

  1. Portc 16F913 problem
    By Andre_Pretorius in forum General
    Replies: 3
    Last Post: - 10th May 2012, 13:40
  2. 18F2520 - problem configuring fuse for port B as digital port.
    By hwhisperer in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th October 2010, 11:41
  3. 16F913 setup
    By Andre_Pretorius in forum General
    Replies: 31
    Last Post: - 17th April 2010, 23:45
  4. 16F913 RA7 Pin control problem
    By Wayne in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th February 2007, 01:53
  5. COM port problem
    By andys280176 in forum Serial
    Replies: 0
    Last Post: - 19th January 2006, 16:42

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