Menu

PortA.4 on 16F690

Help
Grant
2010-07-28
2013-05-30
  • Grant

    Grant - 2010-07-28

    Hi All,

    Been a while since I last posted (3.5 years). Loving GCGB btw!

    I'm having trouble with PortA.4 on a 16F690, which I'd like to use as an output pin as it's on the convenient side of the PIC for what I'm trying to do. It's also the last available pin on this side.

    Is there anything specific I need to do to enable this pin as a digital output?

    Thanks in advance,

    Grant

     
  • kent_twt4

    kent_twt4 - 2010-07-28

    That's the clkout pin, have you got?

    #config Osc = INTRC_OSC_NOCLKOUT
    
     
  • Nobody/Anonymous

    Kent, as always, your blood is worth bottling!

    My config line was #config _CP_OFF & _CPD_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_CLKOUT

    Changing it to #config _CP_OFF & _CPD_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT did the trick.

    And with that, I can say project complete! What a nice feeling this is (finally!)

    By the way, my project was a wireless start system for a swimming pool, with output for all the major timing equipment manufacturers. Saved my swimming club about $1400 in the process :)

    Thanks again,

    Grant

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.