Very nice! Thanks for the tips! Tamas Rudnai wrote: > On Thu, Jun 11, 2009 at 3:39 PM, Dave Janne > wrote: > > >> That was it! >> OUT_OFF movlw b'00000000' >> movwf GPIO ;turn off GPIO >> bit 5 >> goto OUT_OFF >> end ; >> directive 'end of program' >> >> > > It does not make all the differences after all, but I think it is more > 'elegant' : > > movlw b'00000000' > movwf GPIO ;turn off GPIO > bit 5 > goto $ ; this is an endless loop... > end > > or even like this: > > movlw b'00000000' > movwf GPIO ;turn off GPIO > bit 5 > sleep > goto $-1 ; this is an endless loop with power saving... > end > > Tamas > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist