piclist 2008\07\07\183803a >
Thread: Code packing
face picon face BY : Jinx email (remove spam text)

This, the way I've always done it too,

         dbankif adcon1
         movlw   b'00001000'
                 ; XX------  unimplemented
                 ; --0-----  use Vss for Vref-
                 ; ---0----  use Vdd for Vref+
                 ; ----1000  configure AN0-AN6 as analog, rest digital

is more readable and understandable quickly, than

  movlw (1 << TMR0ON) | (1 << T0PS2) | (0 << T0PS1) | (1 << T0PS0)

This means nothing without any comment at all

movlw 0x08
movwf adcon1

<043501c8e081$f2a016c0$89aafea9@ivp1> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Code packing

month overview.

new search...