Marko wrote: > Hi all, > > I'm new (2 days now) to PICs and am working on a project that involves > reading weigand RFID signals, storing the ID numbers in memory then > transmitting them via RS232 to a computer in a big batch. > > As a "build-up" to this, I'm trying to get an LED flasher to work, then an > RS232 broadcaster, then a weigand reader, then finally the weigand > reader/re-transmitter. > > I'm using a 16F88, as it seems to have more than enough capability and isn't > too expensive; programmed in assembly language in MPLAB. The code for the > LED flasher and RS232 are here: > > http://web.mit.edu/cosic/www/PIC/ > > The issue I have is with setting up the device I/O - this is the error I get > when compiling: > > "Message[302] C:\RFID\RS232.ASM 51 : Register in operand not in bank 0. > Ensure that bank bits are correct." > > These are not errors, it is simply a message. Its a reminder, nothing more. Don't worry about it. --Bob > Page 15 of the datasheet says that TRISA, TRISB and ANSEL are in 'Bank 1'. > Page 11 describes the Settings for STATUA, RP0 and STATUS, RP1 needed for > bank 0. > > I've played about with my code to no avail - I still get the error during > compile about the register not being in bank 0. (though it seems to simulate > just fine). > > Any chance somebody more experienced could take a quick peek at the code for > me please? (its lines 18 and 19 on the LED one, lines 51, 55 and 56 on the > RS232 one) Replies off-list would be great. > > Thanks! > > -- > Marko (Mechanical Engineer/blacksmith trying his best at software) > > PS - using the following exemple code from page 53 of the datasheet also > flags up the same compile errors: > > BANKSEL PORTA ; select bank of PORTA > CLRF PORTA ; Initialize PORTA by > ; clearing output > ; data latches > BANKSEL ANSEL ; Select Bank of ANSEL > MOVLW 0x00 ; Configure all pins > MOVWF ANSEL ; as digital inputs > MOVLW 0xFF ; Value used to > ; initialize data > ; direction > MOVWF TRISA ; Set RA<7:0> as inputs > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist