You might try the BoostC forums. -----Original Message----- From: Shawn Wilton [mailto:black9@gmail.com] Sent: Wednesday, October 04, 2006 3:53 AM To: Microcontroller discussion list - Public. Subject: [PIC] BoostC compiler and MPLAB Is anyone using this combination? Now that I FINALLY have my ICD running (sheepish grin), I need some help potentially configuring it. I'm stepping through my code, but I'm unable to get my local variables to show up. They display as "restricted memory". I have them in a separate file that is linked in. Is MPLAB unable to resolve linked functions or is there something I need to do. Even a pointer for what I may be looking for would be helpful. This is the code in question: unsigned int readADChannel(unsigned char channel) { //unsigned int result; unsigned int high; unsigned int low; //Set the ADC Channel //adcon0 &= 00 << 2; clear_bit(adcon0, CHS1); clear_bit(adcon0, CHS0); adcon0 |= channel << 2; //Turn on the ADC adc_on = TRUE; //Delay to perform the acquisition delay_ms(1); //Begin a conversion adc_go = TRUE; //Begin the conversion and block until it's complete while(adc_go == TRUE){} //Clear the interrupt flag //clear_bit(pir1, ADIF); //Convert to 16 bit vars so we can shift properly high = ADRESH; low = ADRESL; //Shift the upper bits up and the lower bits down //Turn off the ADC since we are no longer using it adc_on = FALSE; return (high << 2) | (low >> 6); } -- Shawn Wilton (b9 Systems) http://b9Systems.com <- New web page -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist