> BANKSEL TRISD > movlw 0x00 > movwf PORTA > movwf PORTB > movwf PORTC > movwf PORTD Juk! That fragment of code is either wrong, stupid, or misleading. On a=20 14 bit PIC it will set the TRIS registers, but it on first glance it=20 appears to set the PORT registers. On an 18F it will do what it appears=20 to do at first glance: set the PORT registers.... --=20 Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .