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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/08/05 23:56
Read: times


 
#103448 - inconsistent
Responding to: ???'s previous message
When the conversion is through, interrupt 10's ISR turns off the ADCI bit, and sets a global variable to true.


void adc_intr() interrupt 10 _naked using 0 {
   _asm
      push acc
   _endasm;
   ADCON &= 0xc0;
   _asm
      pop acc
   _endasm;
}


As Erik said, we see no such thing as setting a global variable.

I keep being amazed how people stick to SDCC 2.4.0 when 2.5.0 is out for over half a year. Development is at 2.5.4. Maybe you have to pay for SDCC where you live?

B.t.w. Erik, SDCC uses a peephole optimizer to replace small pieces of asm code by other more optimal pieces of code. Along the way it documents this with comments in the asm code. Have a look at the rules if you're interested: http://cvs.sourceforge.net/viewcvs.p...9&view=log


List of 12 messages in thread
TopicAuthorDate
Timing of A/D conversion on 80c552            01/01/70 00:00      
   show your code            01/01/70 00:00      
      sorry, here is the loop and the ISR            01/01/70 00:00      
         I see no such thing, please cut and past            01/01/70 00:00      
            you're right. I took out the setting of            01/01/70 00:00      
               PLEASE cut and paste, as is it will not            01/01/70 00:00      
                  OK, nevermind. The whole code is way too            01/01/70 00:00      
                     often the reason for an unexplainable pr            01/01/70 00:00      
                        Funny you mention that            01/01/70 00:00      
                  inconsistent            01/01/70 00:00      
                     since wwe all know that you get what you            01/01/70 00:00      
                        True. I fully expect to have to study            01/01/70 00:00      

Back to Subject List