Hi, I am using CC5x. This is because at the time I was only aware of this free compiler. I can't justify cost of a professional compiler since I build projects at level of "serious hobbist" and earn no income from it. When I first started using CC5x, I had written code just as you say T1CON.TMR1ON = 0 but the compiler gave a syntax error. I am going to evaluate SDCC and see how that measures up. Anyway, thank for you help. I have learned a lot from from people like you on this list already. I hope to become good enough to help others someday...soon. --- Matthew Miller wrote: > Hello, > > On Sat, Jun 11, 2005 at 09:24:48AM -0300, Gerhard > Fiedler wrote: > > > > I know that there are many people here who use > only assembler, and maybe > > it's easier to tap into their experience when > using assembler. OTOH the > > code you presented is probably readable for an > assembler programmer just as > > well. > > This is the reason I suggested assembler; more > poeple know it on this > list. I didn't have too much trouble with his C > code, but one thing struck > me as odd. To turn timer 1 off, this was being > written (which I guess was > valid for his compiler): > > TMR1ON = 0; > > Having never programmed a PIC in C I would have > expected this to be written > in this way: > > T1CON.TMR1ON = 0; > > I don't care much for the shortcut his compiler > supports. > > Take care, Matthew. > > -- > "The soft-minded man always fears change. He feels > security in the status > quo, and he has an almost morbid fear of the new. > For him, the greatest pain > is the pain of a new idea." > > -- Rev. Dr. Martin Luther King Jr. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -Hasan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist