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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/23/06 20:10
Read: times


 
#116981 - CPT registers
Responding to: ???'s previous message
@kai

ok, i know now what you mean... thank you for the explanation.
i thought of that following way to compute the values of the timer2. the point is that the captured values of the first interrupt don't get erased when the second interrupt happens.

main:
mov a,ctlalt <- ctlold into accu
subb a,ctlneu <- ctlnew-ctlneu
mov ergl,a <- write result into ergl (ergl data 33h)

mov a,cthalt <- cthold into accu
subb a,cthneu <- cthold-cthnew
mov ergh,a <- write result into ergh

8003h (((ext.int.sfr))) <-adress of external interrupt sub routine

mov cthalt,cthneu <- move cthnew in cthold
mov ctlalt,ctlneu <- move ctlnew in ctlold
mov cthneu,cth <- move cth in cthhnew
mov ctlneu,ctl <- move ctl in ctlnew


i am sitting since 5pm at this problem, i hope that way works??? i don't have my microcontroller to hand, because we are not allowed to take the KIT home. please tell me if that way of computing 2 successive square pulses could work?

thank you all for your help, to be honest i was pessimistic as i started that project but now i understand how the timer 2 works, thank you

List of 51 messages in thread
TopicAuthorDate
measuring illumination by tsl220            01/01/70 00:00      
   sh.. project            01/01/70 00:00      
   PROCESSOR !            01/01/70 00:00      
      processor 80c552            01/01/70 00:00      
         why CCU? KISS            01/01/70 00:00      
            ccu is necessary            01/01/70 00:00      
               who is making it?            01/01/70 00:00      
                  well, thats true but....            01/01/70 00:00      
         Look at this            01/01/70 00:00      
   any programmes?            01/01/70 00:00      
      why not source code 1??            01/01/70 00:00      
         programmes=source codes;)            01/01/70 00:00      
            I agree            01/01/70 00:00      
               ok            01/01/70 00:00      
                  You are a lazy bone!!            01/01/70 00:00      
               source code 1            01/01/70 00:00      
                  you have still not explained ...            01/01/70 00:00      
   You need frequency counter. Look here.            01/01/70 00:00      
   elaborationg on simple solution            01/01/70 00:00      
      relax            01/01/70 00:00      
         blatantly untrue            01/01/70 00:00      
            please apologize            01/01/70 00:00      
               Timer2-what for?            01/01/70 00:00      
                  here's the exact definition of the prblm            01/01/70 00:00      
                     how do i attach files in the postings?            01/01/70 00:00      
                        Posting file listings            01/01/70 00:00      
                     Have a look again...            01/01/70 00:00      
                        ok, i'll do this immediately.            01/01/70 00:00      
                     Capture registers            01/01/70 00:00      
                     E-mail address            01/01/70 00:00      
                        mail adress            01/01/70 00:00      
   next problem            01/01/70 00:00      
      not spilling the beans            01/01/70 00:00      
   link forgotten sorry            01/01/70 00:00      
      In english...            01/01/70 00:00      
      CPT registers            01/01/70 00:00      
         maybe at this time he is in his little            01/01/70 00:00      
            happy about all postings            01/01/70 00:00      
               re flag            01/01/70 00:00      
                  re:re:flags            01/01/70 00:00      
                     You have to set the flag!            01/01/70 00:00      
         Do you have a simulator?            01/01/70 00:00      
            re:simulator            01/01/70 00:00      
               Single Stepping            01/01/70 00:00      
   save capture before next capture            01/01/70 00:00      
      Capture registers            01/01/70 00:00      
   The cookbook            01/01/70 00:00      
   code finished, but small error            01/01/70 00:00      
      atomicity            01/01/70 00:00      
      Who is Hans Meiser???            01/01/70 00:00      
         hans meiser!            01/01/70 00:00      

Back to Subject List