bananasiong said:PCLATH can be used to change page. If you're writing to only the same page (under 2 k), you don't need to change page using PCLATH (usually bit 3 and bit 4).
However if you use PCL after the program memory 0xff, you need to write to PCLATH, even you're just using the same page (same 2 k)
Hi thanks a lot guys now I understood how the org 0x003 increments followed by the next instructions. And also I referred to the deassembly listing it was very helpful.
A small quick question to ask.
If I’m using PIC16F628A (2K) if I have a Table I can call it from any location of the memory without writing to PCLATH.
But if the Table has more than 255 lines then of course I have to write to the PCLATH & call the table.
Is this correct?