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); }
Someone, not so long ago, said:
There is hope. It may or may not be fulfilled...
Are you turning into a realist?
Shhh. I won't tell anybody ;)