BuffaloEngineer
Member
I'm starting out with the PIC24F chips - I've only used 8bit instruction set chips before. Can anyone recommend a good tutorial website or book for the PIC24s? Thanks!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <p24HJ12GP201.h>
_FGS( GSS_OFF & GCP_OFF & GWRP_OFF )
_FOSCSEL( FNOSC_PRIPLL ) // PLL enabled
_FWDT( FWDTEN_OFF )
_FICD( JTAGEN_OFF & ICS_PGD1 )
_FOSC( POSCMD_EC & OSCIOFNC_ON & FCKSM_CSECME ) // external OSC, RA3 I/O
_FPOR( 0x0004) // 16ms startup delay
void __attribute__ (( interrupt)) _T1Interrupt ( void)
I've commented out just about everything in the code, including the configuration statements, and this chip has previously programmed correctly.The following memory regions failed to program correctly:
Configuration Memory
Address: 00f8000c Expected Value: 00000000 Received Value: 00000080
Programming failed