Hi all,
A few questions for the seasoned!
I recently got a new pic to play with (16f1779) 4 op amps .
First shock was I have to move to mplab x as its not supported on mplab 8.whatever I was using.
Its been a hard change but I'm getting to like it I think....
I also thought I should move to relocatable code, I learnt from a book about 15 years ago that used absolute and I've never tried anything else!
My current project that I'm trying to move across to the 16f1779 has quite tight timing on one section of code, I think I have 5 or 6 instructions to play with on a isr bit of code (32mhz so I can't go any faster with intosc)
First question is, if I put the isr and the bit that calls it in the same asm file does this ensure the linker puts them on the same page? I think if I need to do a pagesel out and back of the isr it will use up all my spare instructions :-(.
Second question, is mplab x smart enough to put in pagesel where needed or do I need to always do;
Pagesel routine
Call routine
To make sure nothing goes wrong? (I think I can guess).
I know this is basic stuff but Google comes up with a lot of info, some of it quite old.
Cheers Geoff
A few questions for the seasoned!
I recently got a new pic to play with (16f1779) 4 op amps .
First shock was I have to move to mplab x as its not supported on mplab 8.whatever I was using.
Its been a hard change but I'm getting to like it I think....
I also thought I should move to relocatable code, I learnt from a book about 15 years ago that used absolute and I've never tried anything else!
My current project that I'm trying to move across to the 16f1779 has quite tight timing on one section of code, I think I have 5 or 6 instructions to play with on a isr bit of code (32mhz so I can't go any faster with intosc)
First question is, if I put the isr and the bit that calls it in the same asm file does this ensure the linker puts them on the same page? I think if I need to do a pagesel out and back of the isr it will use up all my spare instructions :-(.
Second question, is mplab x smart enough to put in pagesel where needed or do I need to always do;
Pagesel routine
Call routine
To make sure nothing goes wrong? (I think I can guess).
I know this is basic stuff but Google comes up with a lot of info, some of it quite old.
Cheers Geoff