On Thu, 25 Feb 2010, Jason Hsu wrote: > Thank you for all of your suggestions. > > I resolved my problem by bypassing it entirely. Instead, I'm using > the delay functions in the file. It was much easier to just > follow the example in the samples directory that came with the PICC > software installation. It's hard to argue with the successful record > of the HTSOFT/PICC developers, so I'm using their delay routines > instead of creating my own. > > All I had to add to the beginning of the program was: > #define _XTAL_FREQ 3579450 // Provide the frequency of the crystal, > necessary for using the delay functions > #include // Needed to access the delay functions. > > I used the following commands to call the delay function in my program: > __delay_us(20); > __delay_ms (10); Jason I understand your frustration and eagerness to move forward BUT your understanding of compile time problems, how to identify the cause and fix them is really important! You need to be in control of the compiler. You should not compromise simply because you don't understand what the problem is. If you want to be an "outstanding embedded engineer" view problems such as this as an opertunity to learn. Regards Sergio Masci -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist