After a few try, i appear that you'll always get error when dressing to TRIS. there's another method and it will gives you also an error message
like this:
MOVLW b'11111000'
TRIS PORTA
MOVLW b'11100000'
TRIS PORTB
They will say that is not recomended...bla bla...
In your case
Code:
list p=16f628
include "p16f628.inc"
org 000H
goto start
ORG 005H
start CLRF PORTB
CLRF PORTA
BSF STATUS,RP0 ;SWITCH TO BANK1
MOVLW b'11111000'
MOVWF TRISA
MOVLW b'11100000'
MOVWF TRISB
BCF STATUS,RP0 ;RETURN TO BANK0
;place you code there
;
END
this is working but with error message bullsh... on BANK0 that we set correctly... as i expect.
regards
Last edited by mister_e; - 1st November 2004 at 16:59.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks