Problem with port A of 16f913


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Sep 2014
    Posts
    25


    Did you find this post helpful? Yes | No

    Default Re: Problem with port A of 16f913

    I am driving three common cathode seven segment display.I want to put three buttons on PORT A.first button is for increase counts ,second is for decrease count and third is for save count.Buttons are connected at PortA.2 ,portA.4 and portA.5. I am using PortA.0 as ADC in my another program and that program works.Need help.

    Thanks

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Problem with port A of 16f913

    Did you add the lines that I posted? That pic has an LCD driver which uses the pins you are having problems with. It needs to be turned off. Adding these lines

    Code:
    DEFINE OSC  4 ' or 8 etc
    
    CMCON0 =%00000111   'COMPARATOR OFF
    ADCON0 =%00000000   'ADC off
    
    'SET LCD REGISTERS
    LCDCON = 0 'LCD disabled
    
    LCDPS  = 0
    
    LCDSE0  = 0  'SEGMENTS 0-7 off
    LCDSE1  = 0  'SEGMENTS 8 -15 OFF
    LCDSE2  = 0  'SEGMENTS 16 - 23 OFF
    You have to help yourself we can't write your programs for you, read the data sheet.

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