If I checked the extended mode box in MPLAB, I got a error, the 18F1320 does not support extended mode, and If I added "near" to a declaration, that generated an error that extended mode needs to be checked. Then maybe thats a compiler/MPLAB. I do read the manuals, and had been working on this problem for about a week of spare time (a couple of hours every 2 days minimum) before bringing it to the group. Here is copy/paste from the output window: > Make: The target "D:\data\BANKS ROAD\WELL SENSORS\C > PROGRAM\3-9-09-B\WELL SENSOR-3-9-09-B.o" is out of date. > Executing: "C:\MCC18\bin\mcc18.exe" -p=18F1320 /i"C:\MCC18-3-3" "WELL > SENSOR-3-9-09-B.C" -fo="WELL SENSOR-3-9-09-B.o" --extended -mL -Ls -O- > Device '18F1320' does not support extended mode Taking a successful compilation file, add "near" to the first int declaration ( follows #pragma udata) results in > #pragma config PWRT = OFF // Disable Power-up Timer > #pragma udata > near char check_char = 3; // This is the maximum quantity of ID > characters to compare. > unsigned int get_ADC (int); > char c; > Make: The target "D:\data\BANKS ROAD\WELL SENSORS\C > PROGRAM\3-9-09-B\WELL SENSOR-3-9-09-B.o" is out of date. > Executing: "C:\MCC18\bin\mcc18.exe" -p=18F1320 /i"C:\MCC18-3-3" "WELL > SENSOR-3-9-09-B.C" -fo="WELL SENSOR-3-9-09-B.o" -mL -Ls -O- > MPLAB C18 v3.31 (evaluation) > Copyright 2000-2009 Microchip Technology Inc. > Days remaining until evaluation becomes feature limited: 56 > > WARNING: The procedural abstraction optimization will not be > supported when the evaluation becomes feature limited. > > D:\data\BANKS ROAD\WELL SENSORS\C PROGRAM\3-9-09-B\WELL > SENSOR-3-9-09-B.C:25:Error [1303] 'near' symbol defined in non-access > qualified section Last night I did try to follow the manual with modifying the LKR file, and trying to with #pragma udata, to specify addresses without full success. I was able to with Linker modifications put one of the arrays where it appeared in the MAP file to be space in ram, but an array size larger that 2 generated the doesn't fit error. Today the plan is to go back through that, and if not successful, to prepare meaningful messages showing exactly what I did for people to comment. Thanking again for help. :) Olin Lathrop wrote: > Carl Denk wrote: > >> The 1320 does not support extended mode, >> so near/far isn't available. >> > > Near and far may be used by your compiler to select access bank versus > unbanked memory. As always, read the manual. This should be well described > in the compiler manual. > > > ******************************************************************** > Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products > (978) 742-9014. Gold level PIC consultants since 2000. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist