> -----Original Message----- > From: Trevor Page [SMTP:trevor.page@PACE.CO.UK] > Sent: Tuesday, June 18, 2002 8:10 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Jtag and more > > Hi, > > I know I'm probably having a complete blonde moment here, but it is my > understanding that when at the reset vector, we know that PCLATH has to be > = > 0, and the initialisation routine can always be placed within the first > page > in program space. Hence, we can get by with a single GOTO at the reset > vector address, which branches to somewhere within the first page. > > Please tell me what I've missed. Appologies in advance if this has been > discussed to death already. > > Trev > I think Olin was refering to the case when you want to jump to code that isn't in the first page. All 16 series PIC's that I have used have had the interrupt vector at 04h, so I suspect that the first 4 instructions are designed for page setting rather than as some kind of future expansion. If they wanted to put multiple interrupt vectors in, they likely wouldn't place them right next to each other anyway. Regards Mike -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.