firesky1982
Newbie level 3
how to set trisa and trisb
I can not get the code to build corectly. Here is the code:
this is the error message I get: Register in operand not in bank 0. Ensure that bank bits are correct.
If anyone can help me I have the same problem with all of my code with trisb,a.
MCU:16F84A
Thanks,
Garett
I can not get the code to build corectly. Here is the code:
Code:
ORG 0
PowerOn BSF STATUS,RP0 ;Select file bank 1
MOVLW H'00'
MOVWF TRISB ;Set all PORTB bits as outputs (display driver)
MOVWF TRISA ;Set all PORTA bits as outputs (will be inputs in future version)
MOVLW B'11010111' ;Turn off PORTB pullups, prescaler to TMR0, 1:256 scaling
MOVWF OPTION_REG
If anyone can help me I have the same problem with all of my code with trisb,a.
MCU:16F84A
Thanks,
Garett