On Wed, 7 Jun 2006, Phillip wrote: > Can anyone tell me how to get the data in the var holder to the var > atten_setting? The "2pgm" functions write data to the program memory bus. They do not write to the PIC's program memory. If you really need to write to the PIC's program memory, you'll have to follow the flash write procedure outlined in your PIC's datasheet (assuming your PIC supports this feature). EEPROM might be a better choice. > I was under the impression that atten_string is in program memory and that > holder is an auto variable in data memory. > > I'm also "assuming" the function memmoveram2pgm would move the value in > holder (which has the correct data when I view in the debugger) to > atten_setting. > > This is not working but I can't see why not any sugestions out there? > > rom char atten_string[6]; > > void Attenuation_adjust(void) > > { > > char holder[6]; > > unsigned long x; > > unsigned char RF_atten_setting; > > RF_atten_setting = read_RF_Atten(); > > x = RF_atten_setting; > > ultoa(x,holder); > > memmoveram2pgm(atten_string,holder); -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist