K ktkoota New Member May 13, 2010 #1 Hi, I have pic18f2420, if I want to write a code on the ROM not RAM what setting in the code are requirede? Regards, KtKoota
Hi, I have pic18f2420, if I want to write a code on the ROM not RAM what setting in the code are requirede? Regards, KtKoota
J jimlovell777 New Member May 13, 2010 #3 I'll assume you meant a variable and not code. To help in that respect your programming language and complier need to be known.
I'll assume you meant a variable and not code. To help in that respect your programming language and complier need to be known.
K ktkoota New Member May 13, 2010 #4 what do you mean by To help in that respect your programming language and complier need to be known. Click to expand...
what do you mean by To help in that respect your programming language and complier need to be known. Click to expand...
J jimlovell777 New Member May 13, 2010 #5 What programming language are you using? What compiler are you using?
K ktkoota New Member May 14, 2010 #6 C language.. PICC18.exe I want to enter a table for months and days and I want them to be in Ram.. is there a specific way for this? Last edited: May 14, 2010
C language.. PICC18.exe I want to enter a table for months and days and I want them to be in Ram.. is there a specific way for this?
P Pommie Well-Known Member Most Helpful Member May 14, 2010 #7 ktkoota said: C language.. PICC18.exe I want to enter a table for months and days and I want them to be in Ram.. is there a specific way for this? Click to expand... In you first post you stated ROM and now you state RAM. To put a table in ROM you do, Code: const rom unsigned char month[12]={ 31,28,31,30,31,30,31,31,30,31,30,31 }; Mike.
ktkoota said: C language.. PICC18.exe I want to enter a table for months and days and I want them to be in Ram.. is there a specific way for this? Click to expand... In you first post you stated ROM and now you state RAM. To put a table in ROM you do, Code: const rom unsigned char month[12]={ 31,28,31,30,31,30,31,31,30,31,30,31 }; Mike.
K ktkoota New Member May 15, 2010 #8 yeah it was a mistake I meant ROM.. you mean I have just to add (const rom unsigned char ) for any variable to be in rom? Regards, Ktkoota Last edited: May 15, 2010
yeah it was a mistake I meant ROM.. you mean I have just to add (const rom unsigned char ) for any variable to be in rom? Regards, Ktkoota
P Pommie Well-Known Member Most Helpful Member May 15, 2010 #9 If you want it to be an unsigned char then, yes. If you want bigger variables then change it appropriately. Mike.
If you want it to be an unsigned char then, yes. If you want bigger variables then change it appropriately. Mike.