Does anyone know how to configure the OSC1/RA7 pin as an input in an 18F4580?
foodwatch
Joined: 18 Apr 2006 Posts: 66
Found it
Posted: Mon Jun 21, 2010 2:24 pm
I found the answer under another topic on the forum. Thanks
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
Posted: Mon Jun 21, 2010 2:25 pm
You need to have INTRC_IO selected as your clock fuse, with one of the supported clock rates for this.
It then just operates as normal.
There may well be problems with this on older compilers, so if it is not working, tell us your compiler version, and post a minimum program.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum