Hi, I am using Microchip MPLAB C18 compiler for PIC18F258. I have some questions: (1) How can I store variables using bank selection? (2) How can I use "#pragma varlocate n"? (3) Where do the compiler store "const" variables, "#define" constants and "enum" member lists? In the Flash program memory or RAM data memory? When I look at the Assembly code (after compiling), "const" variables are stored in the Flash but they also use the RAM data memory. The "#define" constants and "enum" member lists seem that they do not take RAM data memory nor Flash memory but they are replaced by the represented values directly in the assembly code. Therefore, I should use "define" and "enum" instead of "const" variables when I want to use constants. Thanks in advance! Luke -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body