A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hi group-members, I have written a pic-programm which consists of two parts: - some tables (like in AN556 or so) - the program-code The table starts at 0x0001 and ends at 0x00d6. The program starts at 0x00d7 and ends at 0x016f. At =0x0000 is a jump to the start of the program. The chip I want to use is the pic16C54A-04, for it is cheap and matches all I want. For testing I use a 16F84 (I only modify this part when I change the pic-type: 16C54: START movlw b'00000011' ; RA0 and RA1 Input tris PORTA movlw b'00000000' ; all to output tris PORTB 16F84: START bsf STATUS,RP0 ; Bank 1 selektieren movlw 0 ; Port B output movwf TRISB movlw 3 movwf TRISA ; Port A RA0, RA1 Input bcf STATUS,RP0 ; Bank 0 selektieren ) When I compile this for 16F84, everything works fine. When I compile it for 16c54, I got many errors like in headline. What went wrong? I cannot believe that I cannot use jumps or calls in the upper half of the memorypage when I use the 16c54! The pcb-layout is ready and uses the pinout for the 16F84 / 16C54. Help! Best regards Andreas |