+ Reply to Thread
Results 1 to 5 of 5

Thread: 18F4431 - RC6 not reading the input

  1. #1
    atferrari Good atferrari Good atferrari Good
    Join Date
    Oct 2003
    Location
    Buenos Aires - Argentina
    Posts
    551

    18F4431 - RC6 not reading the input

    18F4431 - DIP chip

    I have made:

    TRISC = '11111111' (all pins IN) and applied 10K pullup resistors to RC<7:0>.

    The sole modules involving RC6 (AFAIK), SSPCON and RCSTA, = '00000000'.

    My problem:

    Reading PORTC is correct for all pins but RC6 which always reads '0'.

    I measured the voltage at the pin, getting 0.28 V.

    Also checked Silicon revision 3 to no avail.

    Tested with two different chips.

    What I am overlooking here?
    Agustín Tomás
    In theory, there is no difference between theory and practice. In practice, however, there is.


  2. #2
    Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent
    Join Date
    Mar 2005
    Location
    Brisbane Australia
    Posts
    6,696

    Sounds like you have a short on your board. With a 10k pullup and the pin set to input you should have 5V. Can you remove the chip and measure the voltage to see if it is a short?

    Mike.

  3. #3
    atferrari Good atferrari Good atferrari Good
    Join Date
    Oct 2003
    Location
    Buenos Aires - Argentina
    Posts
    551

    Checked already, Mike. No short.

    All peripherals except Power PWM control are disabled so I do not know what else to do. Wherever that pin is alluded to in the datasheet, it is shown involved with the EUSART only.

    Any further idea will be welcome.

    Gracias.
    Last edited by atferrari; 25th May 2009 at 10:10 AM.
    Agustín Tomás
    In theory, there is no difference between theory and practice. In practice, however, there is.

  4. #4
    Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent
    Join Date
    Mar 2005
    Location
    Brisbane Australia
    Posts
    6,696

    Can you chop your code down to a bare minimum that still shows the same behavior and post it here?

    Mike.

  5. #5
    atferrari Good atferrari Good atferrari Good
    Join Date
    Oct 2003
    Location
    Buenos Aires - Argentina
    Posts
    551

    Problem solved

    Hola Mike again,

    It was not a short but an open circuit!. The pin was floating, not seeing the 5V. I started to suspect that when found that for the first two seconds it was reading a 1 and then a 0.

    Measured the voltage directly on the pin, with the micro in RESET and found that.

    I just regret the so many hours checking software.

    Gracias for replying.
    Agustín Tomás
    In theory, there is no difference between theory and practice. In practice, however, there is.

+ Reply to Thread

Similar Threads

  1. Pic 18f4431 Oscillator Problem
    By 2exposantThom in forum Micro Controllers
    Replies: 1
    Latest: 30th October 2008, 05:17 PM
  2. help programming 18f4431
    By thiru_electrifiers in forum Micro Controllers
    Replies: 13
    Latest: 12th April 2008, 07:11 AM
  3. PIC16F84A Reading input
    By mouse9911 in forum Micro Controllers
    Replies: 2
    Latest: 23rd May 2007, 03:15 AM
  4. 18F4431 Encoder input problem
    By Andy_123 in forum Micro Controllers
    Replies: 2
    Latest: 20th February 2007, 01:48 AM
  5. PIC 18F4431 Power PWM , i am lost!
    By max_imum2000 in forum Micro Controllers
    Replies: 1
    Latest: 18th May 2006, 01:58 PM

Tags for this Thread