is there the possibility to read programmatically the MCU family, the MCU type, the MCU ID and so on, with some functions inside the firmware?
I'm writing a "standard" firmware that will works with PIC18F2550 and PIC18F4550, so I would like to know how to automatic recognize the pic used.
Something like this:
Code: Select all
short PIC_ID;
PIC_ID=READ_PIC_TYPE();
if(PIC_ID==0)//18F2550
{...}
elseif(PIC_ID==1)//18F4550
{...}
elseif
{//ERROR}
Thank you in advance