> I am trying to set selected bits in GPIO using > bsf GPIO, n where n can be 0,1,2,4 > The selected bit gets set ok but any bit which is > already on is cleared at the same time. Why is > this google (or search www.piclist.com) for read-modify-write problem I have probably mentioned and explained it somewhere in www.voti.nl/swp. > - and how should I do to set and clear bits > individually? use a shadow register (google will explain) Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist