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

Back to Subject List

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


 
#182321 - CCF4 Bit
Responding to: ???'s previous message
Tom,
Are you making your software clear the CCF4 bit each time you get the PCA interrupt? If not then the MCU will get interrupted over and over until such time that this bit actually does get cleared.

Note that if you do start to use the PCA overflow then at each overflow interrupt you must also clear the CF bit.

It is a good idea to structure the PCA interrupt service routine in such a way so that it has code that looks similar to:

      IF CF Flag Set Then
           Clear CF Flag
           Do other Overflow work
      ENDIF

      IF CCF4 Flag Set Then
           Clear CCF4 Flag
           Do work associated with the capture function
      ENDIF


Michael Karas



List of 13 messages in thread
TopicAuthorDate
PCA 8051 issue            01/01/70 00:00      
   CCF4 Bit            01/01/70 00:00      
      CCF4 bit            01/01/70 00:00      
         run_mode??            01/01/70 00:00      
            interrupt vectors            01/01/70 00:00      
               interrupt vectors            01/01/70 00:00      
            run_mode            01/01/70 00:00      
   Now seems like....            01/01/70 00:00      
      Goes for all languages/platforms            01/01/70 00:00      
      my code            01/01/70 00:00      
         No....            01/01/70 00:00      
   just a thought            01/01/70 00:00      
   Another Thought...            01/01/70 00:00      

Back to Subject List