Hey all,
Today I was continuing with my project using the PIC32MX120F064H. I want to use pin 35 (RF6) as an output, however the header files for this pic device that come with the xc32 compiler seem to not include this pin. Here is the structure from the pic32mx120f064h.h file:
typedef union {
struct {
unsigned TRISF0:1;
unsigned TRISF1:1;
unsigned TRISF2:1;
unsigned TRISF3:1;
unsigned TRISF4:1;
unsigned TRISF5:1;
unsigned :2;
unsigned TRISF8:1;
unsigned :3;
unsigned TRISF12:1;
unsigned TRISF13:1;
};
struct {
unsigned w:32;
};
} __TRISFbits_t;
The datasheet notes that this specific pin is not available on devices with USB capabilities, but the specific device I am using does not have a usb peripheral.
Any ideas/workarounds?
Would simply adding it to the structure work?
(I know, I simply could change the pins I am using, but I have already sent the PCB to the fab because I really was not expecting a simple IO pin to cause problems....)