Subject: Re: [PIC]: Pic Basic Pro / Pic 16f818 Problem > 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 ? PIC's are new to me full stop. I am on a steep learning curve with regard to both the architecture and the programming languages. It has been many years since I last designed an electronic circuit from scratch too and this is my first circuit using an embedded processor so I am rusty in that area too. Add to that the fact that I became disabled with a medical condition a few years ago that leaves me with 'brain fogs' and you can see that I have quite a challenge in front of me (in fact I am pleased that I have been able to get this far before ginding to a complete stop). > > 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. The problem I found was that I was having difficulty grasping the ASM language (it seemed totally confusing despite lots of research) but I could understand how the basic programs were put together. > > Debugging problems in BASIC, C, JAL, whatever, often > means reading the generated assembler anyway... I may have to delve into the .asm file and see if I can spot anything in there. Thanks for your suggestions. Larry Green VE3YET -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads