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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
That's the clkout pin, have you got?
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