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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/02/06 06:39
Read: times


 
#111030 - overflowcount++;
Responding to: ???'s previous message
overflowcount++;
How long do you think that takes?
Look at the asm code.

Plus it is not atomic. You need a semiphore (flag) to control access to it.

without comments or formating you code is hard to understand.
Add comments and use the pre /pre tags.

I can only guess what you are trying to do. If you are trying to use the interupt to generate a delay that is not the way to do it. Tell us what you want to do, not what you are doing.

That giant switch statement could be replaced with 1 or 2 lines of code with math.

this should be a while statment, to start with.
lv:
if(overflowcount!=1800)
goto lv;

The LCD up dates slowly plus you have no filtering. Fast update should be avoided.


List of 15 messages in thread
TopicAuthorDate
Regarding the LCD display problem            01/01/70 00:00      
   Code i used            01/01/70 00:00      
       overflowcount++;            01/01/70 00:00      
         Detail about my aim.            01/01/70 00:00      
      Main            01/01/70 00:00      
         Rep: Ian            01/01/70 00:00      
   Reset ?            01/01/70 00:00      
      MC working after the reset            01/01/70 00:00      
         So where's the problem?            01/01/70 00:00      
            Reply to Russell            01/01/70 00:00      
               Reset system            01/01/70 00:00      
                  Could be bad LCD Reset.            01/01/70 00:00      
                     LCD resets            01/01/70 00:00      
                     Rep: Prahlad Purohit            01/01/70 00:00      
                        Yes you need a supervisor.            01/01/70 00:00      

Back to Subject List