Larry Green wrote : > I have written my first PIC program which is quite complex > for a first attempt(it is for a specific hobby related > project). The program is written in PIC Basic Pro (for the > most part) as I felt out of my depth with the Microchip > language and I have programmed in BASIC before, although it > was many years ago. Hi. Just some general remarks... From your description it sounds as you are not *that* familiar with the PIC architecture ? Or is it only "PIC programming" that are new to you ? Anyway, solving this kind of problems might sometimes lead to investigating the assembler code generated by the BASIC compiler and checking that for some "error" (does not have to be a "compiler bug", just that it does something wrong in this specific case). The general tip from *this* list seems to be, write your first (couple of) programs in assembler and when you feel comfortable with the PIC architecture, go on and look at the differenct BASIC, C, JAL, whatever "higher" level languages. Debugging problems in BASIC, C, JAL, whatever, often means reading the generated assembler anyway... Jan-Erik. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads