TronicBrain
Member
Hi
This is the first time I reach about 550 instruction set in 16F877
But it started causing troubles
My code is about several subroutines called from the main program
At the beginning of the project I was adding the code piece after piece
And make a test after adding every sub routine
(all the subroutines are working well individually)
But when added the last piece of code it dose not work
When moving it after the main program
It works but leaving the last piece of code not working!
I thing it's a matter of paging the program memory
I do not know how to deal with PCLATH register
and my whole program will not exceed 700 instruction set
any help?
This is the first time I reach about 550 instruction set in 16F877
But it started causing troubles
My code is about several subroutines called from the main program
At the beginning of the project I was adding the code piece after piece
And make a test after adding every sub routine
(all the subroutines are working well individually)
But when added the last piece of code it dose not work
When moving it after the main program
It works but leaving the last piece of code not working!
I thing it's a matter of paging the program memory
I do not know how to deal with PCLATH register
and my whole program will not exceed 700 instruction set
any help?