We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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); }
Writing to ROM is normally (by definition) a bit tricky.