Problem with RC3 and RC6 on 16F685


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Problem with RC3 and RC6 on 16F685

    I have this simple code:

    @ DEVICE PIC16F685, WDT_ON, INTRC_OSC_NOCLKOUT

    TRISC = 0
    ADCON1 = 0

    Main:
    High PORTC.3
    Pause 1000
    High PORTC.6
    Pause 1000
    High PORTC.7
    Pause 1000
    High PORTB.7
    Pause 1000
    LOW PORTC.3
    Pause 1000
    LOW PORTC.6
    Pause 1000
    LOW PORTC.7
    Pause 1000
    LOW PORTB.7
    Pause 1000

    Goto Main

    But when RC6 gets high, RC3 will automaticly goes low.
    CMCON doesn't work. Anybody have a solution?

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


    Did you find this post helpful? Yes | No

    Default

    Code:
            '
            '        Disable ALL analog stuff
            '        ========================
            ANSELH=0
            ANSEL=0
            CM1CON0=0
            CM2CON0=0
    Last edited by mister_e; - 9th February 2007 at 15:00.
    Steve

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

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thank you it's working.

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