Page 1 of 1

undeclared error

Posted: Tue Jan 17, 2017 3:39 pm
by howard123
Hi
I have a PIC 24FV16KA304. I just have a C block in main containing “osccon=0b0001000110100000; // set internal clock to 16 meg” with no other code and am getting an error - 'osccon' undeclared(first use of this function)

This did work in FC6 as I remember.

Any ideas
thanks

Re: undeclared error

Posted: Tue Jan 17, 2017 4:47 pm
by LeighM
for V7 ...

Code: Select all

OSCCON=0b0001000110100000;