PIC16F685 RA4/RA5 pins


Results 1 to 17 of 17

Threaded View

  1. #1
    Join Date
    May 2007
    Location
    Suffolk, UK
    Posts
    59

    Default PIC16F685 RA4/RA5 pins

    I thought(!) I understood that PortA 4 & 5 on a PIC16F684 could be used as general purpose I/O pins with an internal oscillator. So far I have been unable to achieve this. I have this at the top of my programme:-

    @_CONFIG INTOSCIO & _WDT_ON & MCRE_OFF & _CP_OFF
    ANSEL = $00
    OSCON = %01100001
    CMCON0 = 7
    TRISA = $00
    TRISC = $00

    All other pins work fine but A4 continues to display a pretty 1Mhz clock output and A5 just looks at me!
    I've RTFM endlessly and tried several things including subtle changes to the oscillator configuration fuse to no avail. So, to stop premature baldness can someone tell me what the problem is!

    Many thanks

    Adrian
    Last edited by Adrian; - 8th November 2008 at 16:35. Reason: Wrong PIC number in heading

Similar Threads

  1. Change On Interrupt, PIC16F884
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th November 2008, 17:25
  2. PIC - 8 Pins - 6 Output Pins ?
    By DanPBP in forum Off Topic
    Replies: 0
    Last Post: - 22nd October 2007, 00:23
  3. Why does this program switch pins?
    By Archangel in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th August 2006, 04:24
  4. I2C Effects on other PortA pins
    By kenmac in forum General
    Replies: 2
    Last Post: - 11th July 2005, 05:36
  5. PIC PORT 'special' pins
    By barkerben in forum General
    Replies: 1
    Last Post: - 18th January 2005, 21:40

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