Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

.inc or .h file for dsPIC33CH128MP506

Status
Not open for further replies.

Diver300

Well-Known Member
Most Helpful Member
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
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:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top