Try setting PCLATH to 4 0x378= 010001111000 | Opcode | \/ PCLATH<4:3>=01 PCLATH=0100 = 0x4 Unless you set this, the PIC will jump to b'0001111000' which is 0x78! Rafael Pinto -----Original Message----- From: Dep. Projeto/Eletrtnica To: PICLIST@MITVMA.MIT.EDU Date: Sexta-feira, 24 de Abril de 1998 18:24 Subject: Problems with PCL >I am making an aplication for PIC16C73. >When I didn't have the ICEPIC, I had simutaled the program (on MPLAB >simulator) and every thing was OK. But now I want to test the program on >the application with the ICEPIC, and I have problems with PCL and >PClatch. >When I have a CALL instruction, the PCL goes to a wrong adress, the high >part of PC (on PClatch) has 0 value, so the PC follows only the less >significant part of the adress. For example: > If the instruction is - CALL 0x0478 - the PC goes to 0x0078 > >Please, could you help me solve this problem? > >Angela Vianna Torres >nano@funcitec.rct-sc.br >