So I'm trying to work through "Learning to Fly the PIC24." The author uses a PIC24FJ128GA010 but I have a 24HJ32GP202.
Currently, I'm using the following C30 program:
//
// Test
//
#include <p24hj32gp202.h>
int main()
{
TRISA = 0;
PORTA = 0xff;
return 0;
}
However, after execution in the MPLAB SIM, the watchlist claims that PORTA is 0x0014.
I have no idea why this is happening. I've tried a range of numbers and they all come out wrong. I realize that There are only pins RA0-RA4 on the HJ32GP202, so I even tried PORTA = 0x01, and it still comes out wrong.
Any help would be greatly appreciated
Currently, I'm using the following C30 program:
//
// Test
//
#include <p24hj32gp202.h>
int main()
{
TRISA = 0;
PORTA = 0xff;
return 0;
}
However, after execution in the MPLAB SIM, the watchlist claims that PORTA is 0x0014.
I have no idea why this is happening. I've tried a range of numbers and they all come out wrong. I realize that There are only pins RA0-RA4 on the HJ32GP202, so I even tried PORTA = 0x01, and it still comes out wrong.
Any help would be greatly appreciated