Electrical
New Member
Firstly I'm sorry for my bad English
I'm new in pics.I have been trying to make a program which lights a led which is connected to PORTB's 0.bit but everytime I run program I recieve the message:
Register in operand not in bank 0. Ensure that bank bits are correct.
this is the program:
00001 LIST P=16F84A
00002 INCLUDE "P16F84A.INC"
00001 LIST
00002 ; P16F84A.INC Standard Header File, Version 2.00 Microchip Technology, Inc.
00134 LIST
0000 1283 00003 BCF STATUS, 5
0001 0186 00004 CLRF PORTB
0002 1683 00005 BSF STATUS, 5
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0003 0186 00006 CLRF TRISB
0004 1283 00007 BCF STATUS, 5
0005 1406 00008 BSF PORTB, 0
00009 END
So, what is the problem
I'm new in pics.I have been trying to make a program which lights a led which is connected to PORTB's 0.bit but everytime I run program I recieve the message:
Register in operand not in bank 0. Ensure that bank bits are correct.
this is the program:
00001 LIST P=16F84A
00002 INCLUDE "P16F84A.INC"
00001 LIST
00002 ; P16F84A.INC Standard Header File, Version 2.00 Microchip Technology, Inc.
00134 LIST
0000 1283 00003 BCF STATUS, 5
0001 0186 00004 CLRF PORTB
0002 1683 00005 BSF STATUS, 5
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0003 0186 00006 CLRF TRISB
0004 1283 00007 BCF STATUS, 5
0005 1406 00008 BSF PORTB, 0
00009 END
So, what is the problem