Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/29/05 14:50
Read: times


 
#106161 - a major boo-boo
Responding to: ???'s previous message
I just saw the code you e-mailed me and you call subroutines at register bank 0 from an ISR at register bank 1 ("using").
void PCA(void) interrupt 6  using 1
   {
   if(CCF2) PerformPCA2(); //
   if(CCF3) PerformPCA3(); //
   if(CCF4) PerformPCA4(); //
   if(CF)   PerformPCA_Overflow();
   }  // end PCA

void PerformPCA2(void)
   {
   PCA1LongOld.L = PCA1Long.L;
   PCA1Long.C[3] = CCAP2L;
   PCA1Long.C[2] = CCAP2H;

.....

void PerformPCA3(void)      //RPM3 input
all routines must be specified to use the same register bank as the calling routine.

Erik

List of 16 messages in thread
TopicAuthorDate
PCA extension            01/01/70 00:00      
   is this what you mean            01/01/70 00:00      
   a major boo-boo            01/01/70 00:00      
      Still trying.            01/01/70 00:00      
         Use Tags            01/01/70 00:00      
            tags?            01/01/70 00:00      
               Look Below            01/01/70 00:00      
         that will make it erratic any time            01/01/70 00:00      
            Is there any way.....?            01/01/70 00:00      
               everything depends            01/01/70 00:00      
                  Hm, sounding like there is no clean fix            01/01/70 00:00      
         Hold flags            01/01/70 00:00      
            I fixed it, sort of......            01/01/70 00:00      
   Compiler            01/01/70 00:00      
      should not be t he problem            01/01/70 00:00      
   sketching an idea            01/01/70 00:00      

Back to Subject List