I'm trying to program a dsPIC33CH128MP506.
I've got some trivial code to compile, but I can't work out how to write to the special function registers.
When working with a PIC24F16KA101, I can write
but I can't find where MPLAB X has hidden the .h files, so I'm not sure what to put in the code so that the compiler will let me access the special function registers.
Can anyone tell me if there is a file I need to include when working with the dsPIC33CH128MP506?
Edit:- I finally found p33CH128MP506.h which I've included and the TRISBbits.TRISB2 operations work.
I've got some trivial code to compile, but I can't work out how to write to the special function registers.
When working with a PIC24F16KA101, I can write
Code:
#include "p24F16KA101.h"
TRISBbits.TRISB2 = 0;
but I can't find where MPLAB X has hidden the .h files, so I'm not sure what to put in the code so that the compiler will let me access the special function registers.
Can anyone tell me if there is a file I need to include when working with the dsPIC33CH128MP506?
Edit:- I finally found p33CH128MP506.h which I've included and the TRISBbits.TRISB2 operations work.
Last edited: