18F14K50, PORT C as outputs


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    Mmm... I tried this but it still doesn't work!
    Code:
    REFCON0=0
    REFCON1=0
    ADCON1=0
    ADCON2=0
    ANSEL =0           
    ANSELH=0
    CM1CON0=0
    CM2CON0=0
    SRCON0=0
    SRCON1=0
    WPUA=0
    WPUB=0
    
    TRISC = 0
    PORTC = 0
    
    ProgStart:
       PORTC.2 = 1
       pause 1000
       PORTC.2 = 0
       pause 1000
       goto ProgStart

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    Are you sure that problems are in portc?
    Did you test other port? Maybe you didn't configure oscillator correct, or MCLR pin, etc...

  3. #3
    Join Date
    Feb 2012
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    Yes, when I use PORTB everything is fine!
    (I can pull the C-outputs still high with a resistor. This gives me the impression that the pins are inputs.)
    Last edited by RuudNL; - 1st September 2014 at 15:43.

  4. #4
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    What value are resistor?
    Try to put LED on portc with 1K series resistor, then see what is happening...

  5. #5
    Join Date
    Feb 2012
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    The result is (as expected): nothing!

  6. #6
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    PORTC is probably damaged...
    You can try to use LAT registers, but...

  7. #7
    Join Date
    Feb 2012
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: 18F14K50, PORT C as outputs

    PORTC is probably damaged...
    I don't think so, because the result is the same with different (new!) 18F14K50's...

Similar Threads

  1. 18f14k50 low speed
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st May 2013, 19:20
  2. Hello World help please 18F14K50 config
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th August 2011, 18:35
  3. Replies: 2
    Last Post: - 22nd January 2011, 02:58
  4. 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, 12:41
  5. Replies: 3
    Last Post: - 24th September 2010, 08:10

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