Hello. I want to use a PIC12F510 to produce a rough 4KHz signal using timer 0 but can't seem to get it to work as the compiler keeps saying 'Invalid Pre-Processor Directive' to the line '#INT_RTCC'.
Am I doing something wrong or am I going to need a different PIC?
I'm using the internal 8MHz oscillator.
My compiler version is 3.245.
#FUSES NOWDT //No Watch Dog Timer
#FUSES IOSC8 //Internal 8 MHz oscillator.
#FUSES NOPROTECT //Code not protected from reading
#FUSES MCLR //Master Clear pin enabled
//#FUSES RB4 //B4 is an I/O pin not CLKOUT
#use delay(clock=8000000)
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Nov 30, 2007 12:21 pm
I don't think this PIC has any interrupts. There's no mention of it
in the data sheet.
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Fri Nov 30, 2007 2:59 pm
Yup. This device has a timer/counter but the data sheet shows no interrupt flag going anywhere. Just the ability to ready the timer register. I even tried to use the wizard and it shows no interrupts to be set up.
If you need an interrupt you'll need to select a different part. It stinks but it's called a learning curve.
Ronald
monkeytennis
Joined: 18 Feb 2004 Posts: 16 Location: UK
Posted: Mon Dec 03, 2007 4:29 am
So I see.
I'm not used to these PICs, I mostly use the 18FXXX series. I must have completely overlooked the lack of interrupts!
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