Joined: 13 Jan 2004 Posts: 29 Location: Green Bay, Wisconsin
12F683 PIN_A3
Posted: Thu Oct 18, 2007 9:53 am
I am looking to use PIN_A3 on a 12f683 as an output and seem to be missing somthing in the setup. When I compile the following code and run it in the MPLAB sim it never toggles. I have searched the forum and tried serval things with the register setup but to no prevail the same thing in the end. Any thoughts?
compiler version 3.249
Code:
#include <12F683.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOCPD //No EE protection
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOMCLR //Master Clear pin used for I/O
#FUSES NOPUT //No Power Up Timer
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOIESO //Internal External Switch Over mode disabled
#FUSES NOFCMEN //Fail-safe clock monitor disabled
Joined: 13 Jan 2004 Posts: 29 Location: Green Bay, Wisconsin
Posted: Thu Oct 18, 2007 10:39 am
Guess I should have read the data sheet a bit more closely. GPIO3 is only configurable as a general purpose input or as a Master Clear with weak pull-up.
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