PortC.7 general I/O output problem


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    I saw that, but I am talking about RC7, which is the RX pin.

    The RC6 Pin (TX) which you are talking about seems to work as a general I/O. I was wondering why the RC7 / RX Pin won't work.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    Note 1: When the SPEN bit is set the RX/DT I/O pin
    is automatically configured as an input,
    regardless of the state of the corresponding
    TRIS bit and whether or not the EUSART
    receiver is enabled.
    The RX/DT pin data
    can be read via a normal PORT read but
    PORT latch data output is precluded.
    You can't if you're using HSEROUT
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    Are you using hserout or hserin?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  4. #4
    Join Date
    Jun 2011
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    I am using neither hserout or hserin. I just want to use ports c.0 - c.7 for general output.

    Have I configured my pic incorrectly?

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    I think NO! ADCON = 7 is the same as ADCON = %00000111. so you have enabled the a/d and turned it on. Please correct this and see if it helps. It looks like you DO have the serial disabled as you wanted to.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Jun 2011
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    Ok, I changed the ADCON0 and ADCON1 to 0, still have the same problem. Portc.0-portc.6 work fine, it is just the last pin portc.7 that doesn't seem to change no matter what I send to it.

  7. #7
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: PortC.7 general I/O output problem

    I don't see any reason for it not to work. Maybe the circuit is bad? Breadboard or SIM? How do you know it is not working?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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