Jim Johnson wrote: > > Hi Folks, > > Being new to programming the PIC, and handed a sizable project here at work > I have run into a problem. The previous programmer quit his job and seems > to have lost > or misplaced our databooks for the 16C74, and other various useful items I > could use the heck out of right about now! > > Following is part of my code, and I am getting an 'Argument out of Range. > Lease significant bits used' error message upon building it. I have marked > the placed > in the code the compiler points to. > > list p=16c74 > > #define chip_id 02 > > include p16cxx.inc > > cblock 0x25 > rcv_byte ; 25 > > endc > > PORT_A equ PORTA > PORT_B equ PORTB > PORT_C equ PORTC > PORT_D equ PORTD > LED equ 0 > HYP_PWR equ 2 > CS8130_ON equ 4 > BUSY equ 5 > RESET equ 6 > D_C equ 7 > PORT_E equ PORTE > > org 0 > > goto start > ;========================================================== > ; Interrupt procedured go here, starting at 4 > ;========================================================== > org 4 > > ;========================================================== > > start > bcf STATUS,RP0 > bcf INTCON,7 > clrf PORTA > clrf PORTB > clrf PORTC > clrf PORTD > clrf PORTE > clrf PIR1 bsf INTCON,7 ; switch to bank 1 of register file > clrf PIE1 <----------- Error. > clrf PIE2 <----------- Error. bcf INTCON,7 ; back to bank zero ; next line is correct > clrf T1CON <----------- Error. > goto initialize