Cantafford
Member
I have a stupid question but I just can't figure this out. It's probably something really simple that I'm omitting.
I'm writing a simple program using a dsPIC30F and I'm trying to configure the Timer1 module.
When I try to write a value to a register(say 'TON=1' to start timer1) I get the following error:
main.c:16: error: 'TON' undeclared (first use in this function)
Basically my code does not recognize the registers by it's name. I tried T1CON.TON still nothing. And this goes for all registers not only the ones in T1CON.
I have in my header: "#include <p30Fxxxx.h>" that's what MPLAB put in there I'm assuming it belongs to the dsPIC30F family. So what is the problem why aren't my registers name recognized?
I'm writing a simple program using a dsPIC30F and I'm trying to configure the Timer1 module.
When I try to write a value to a register(say 'TON=1' to start timer1) I get the following error:
main.c:16: error: 'TON' undeclared (first use in this function)
Basically my code does not recognize the registers by it's name. I tried T1CON.TON still nothing. And this goes for all registers not only the ones in T1CON.
I have in my header: "#include <p30Fxxxx.h>" that's what MPLAB put in there I'm assuming it belongs to the dsPIC30F family. So what is the problem why aren't my registers name recognized?