Subject
- Posted on
I have a 12f508 and trying initialize it
every think works except the GP2 pin
i need it to work as an out put. but it just doesnt work . I have
tried everything. I think it is somthing to do with the timer0 but i
dont know what.
anyways this is how i have initialized it.
#include <12c508A.h>
#fuses INTRC,NOWDT,NOPROTECT,NOMCLR
#use delay(clock = 4000000)
#use fast_io(B)
void main()
{
int8 turnoffdelay = shutdwn_delay_min; //shutdown delay variable
int8 MainPower_off;
int1 pinstatus; //stores the GP0 status
int1 toggle;
set_tris_B(0x29);
output_B(0x00);
PLS HElp I WILL REALY APRECIATE IT
Thanks Nadeem
Re: Hi all I need help with 12c508, i am loosing it
On Fri, 08 Jul 2005 20:15:10 -0000, the renowned
nad@acuraembedded-dot-com.no-spam.invalid (Nadeem) wrote:
This is not the correct newsgroup.
But anyway, you will need to set the OPTION register. See the
datasheet.
Also note that the 12C508 is not the same as the 12F508 in every
respect (you refer to both).
Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff@interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
Site Timeline
- » A Question about the population here
- — Next thread in » Industrial Control Group
-

- » Compact logix and Beijer E-Terminals
- — Previous thread in » Industrial Control Group
-

- » Measurement validation for process signals
- — Newest thread in » Industrial Control Group
-

- » CNC routing plastics - eye irritant?
- — The site's Newest Thread. Posted in » General Metalworking
-

- » Zero On topic out of 11
- — The site's Last Updated Thread. Posted in » General Metalworking
-





