Tamas - absolutely no negative feelings on my part regarding the conversation. We live and we learn and we move forward on the basis of what works for us individually. Your arguments were very valid - especially in light of your concern with very tight timings. Somehow, in all my years of programming, I have never had to worry about counting cycles - reducing memory has been a more common problem. :-) Take Care, David David V. Fansler s/v Annabelle dfansler@dv-fansler.com www.dv-fansler.com -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Tamas Rudnai Sent: Tuesday, February 09, 2010 6:53 PM To: Microcontroller discussion list - Public. Subject: Re: 12C09Timer Problem Hi David, I see, it makes sense in this context. Whenever I make a precise timings with PIC, I found it actually very easy to use the standard PIC assembly language, as (nearly) every instruction takes only 1 cycle. The only difference is basically when PC is involved in the equation (GOTO, CALL, RETURN, RETLW and when you are doing something with PCL like computed goto). Anyway, I just found that it is better not even using the Microchip standard macros (pseudo instructions) as then this rule is then not true anymore. Probably that's why I had bad feeling about this kind of toolset -- sorry about that. Kind Regards Tamas On Tue, Feb 9, 2010 at 11:08 PM, David V. Fansler wrote: > Hi Tamas, > > The TechTool manual includes the translation for each of the TechTool > instructions. > > When I was working with the MicroChip processors, the only C complier was > expensive. =A0The other problem I had was that my TechTool ICE would not > handle the newer 18F chips. =A0I have done development so long now with an ICE > (since the early 80's) that I did not what to take on a new chip without an > ICE. =A0Being a high school science teacher, I was able to get 10 free QSK26A > from Renesas University for my classes to use. =A0Very similar marketing that > Apple did with the elementary schools many years ago. > > Anyway, I found the Renesas easy to use and move to it. =A0I started out using > the RCA 18Cxx series of microprocessors before moving to the Microchip > controllers. =A0Times change and so do our taste in uprocessors. > Kind regards, > > David > > David V. Fansler > s/v Annabelle > dfansler@dv-fansler.com > www.dv-fansler.com > > > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of > Tamas Rudnai > Sent: Tuesday, February 09, 2010 5:28 PM > To: Microcontroller discussion list - Public. > Subject: Re: 12C09Timer Problem > > On Tue, Feb 9, 2010 at 10:09 PM, David V. Fansler > wrote: >> The TechTool instruction set is a little different from the MicroChip set, >> but while using the TechTool ICE I find it easier to use their instruction >> set. > > The only problem with that is that you never know the exact > translation to the Microchip instr. set, do you? For example that DJNZ > at least 2 instructions (DECFSZ + GOTO), and not sure if they handle > banks and pages? Or if they do how? > > In my opinion it would be better off with a C compiler if you need to > jump in between different MCUs. > > Tamas > > >> >> While I do have a telescope I carry on longer trips on the sailboat, this >> project is for a larger land based unit. >> >> I have not been doing too much with the MicroChip processors these days - > I >> have moved to Renesas M16C and M62P processors. =A0They have a free IDE with >> C/C++ included and have a evaluation board (QSK26 or QSK62) that include a >> JTAG type debugger to let you single step through your program. =A0Cost = is >> about $65 for the QSK. =A0I have not used anything with USB like the 18F >> series. >> >> Speaking of the sailboat, I ended up spending 3 weeks out with it last >> summer while school was out - I am hoping for 4 weeks this summer - more >> time on the boat =3D=3D less time on honey do list :-) >> >> Take care, >> >> David >> >> David V. Fansler >> s/v Annabelle >> dfansler@dv-fansler.com >> www.dv-fansler.com >> >> -----Original Message----- >> From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of >> Barry Gershenfeld >> Sent: Tuesday, February 09, 2010 3:45 PM >> To: Microcontroller discussion list - Public. >> Subject: Re: 12C09Timer Problem >> >> My first thought was the oscillator was running at two different >> frequencies, but if the serial port stuff keeps working, it rules out that >> idea. >> >> I like Ruben's suggestion much better. =A0In effect the delay is governed by >> an uninitialized memory byte, if he's right. =A0That matches up nicely w= ith >> all the other symptoms. >> >> The last time we chatted I was working with 16F877's. =A0I have since us= ed >> many of the 18F series and am currently doing our first PIC32 based >> project. =A0Come back more often! =A0How the heck do you use a telescope= on a >> sailboat anyway? >> >> Barry >> -- >> 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 >> > > > > -- > /* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=3D"/* > www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=3D%s%s%s, > q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", > q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } > > -- > 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 > -- = /* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=3D"/* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = 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