This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error

getting in writing in ROM
#include <p18f4580.h>
#pragma config WDT = OFF
#pragma config OSC= HS
#pragma config PBADEN=OFF
#pragma config PWRT=ON
#pragma config LVP=OFF

void main()
{ unsigned int V,I,lut[7];
const ROM lut[7]={0,1,2,3,3,3,3}; //ecc V=5; I=lut[V];
while(1);
}

0