Just for completeness, it appears the TRIS assembly command works on the 16F877 for PORTS A,B, and C, but not PORTS D or E.(and this may not be supported on the 877?)
Thr following works but gives warning "Use of this instruction is not recommended"
and thisCode:ASM movlw 0x07 TRIS PORTA ENDASM
gives errors.Code:ASM movlw 0x07 TRIS PORTD ENDASM




Bookmarks