Good Day.
Based on a discussion in one of my other threads, I have decided to upgrade from an 8 bit PIC18lf2420.
I have ordered some samples of the PIC24FV32KA302 microcontroller.
So I decided while I wait for the pics, that I would try coding on the IDE, just to get a hang of the new chip.
I have set up a new project, and have linked in the header file. But now
I am trying to set config bits the way I used to on C18 with the PIC18lf2420 Processor, but it doesn't like that. I cannot figure out how to format the config bits section
Perhaps somebody could help me out, with setting the basic config bits (just till I get the hang of it). Basically I need the WDT Disabled, Internal Oscillator and any thing else, just so that I can flash an LED.
Please could you help me, either with the Config Bit setting portion, or if you are generous, and have time on your hands, a small program to blink the LED on a pin.
Here is what I have so far
(it gives me 'unable to resolve identifier' when it gets to the _config1 section)
/*
* File: newmain.c
* Author: Peter
*
* Created on 05 June 2014, 21:49
*/
#include <stdio.h>
#include <stdlib.h>
#include <p24FV32KA302.h>
_CONFIG1(FWDTEN_OFF) [];
/*
*
*/
int main(int argc, char** argv) {
return (EXIT_SUCCESS);
}
Thanks
P