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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/24/05 08:17
Modified:
  02/24/05 08:18

Read: times


 
Msg Score: 0
 +1 Good Answer/Helpful
 -1 Message Not Useful
#88281 - Alternative
Responding to: ???'s previous message
If you don't have REG52.INC, then you can use these definition in the start of your program.
;REGISTER DECLARATION FOR 8052 PROCESSOR.

T2CON   DATA    0C8H
RCAP2L  DATA    0CAH
RCAP2H  DATA    0CBH
TL2     DATA    0CCH
TH2     DATA    0CDH
WDTRST  DATA    0A6H
AUXR    DATA    8EH

TF2     BIT     0CFH
T2IP    BIT     0CEH
T2IE    BIT     0CDH
T2RSEN  BIT     0CCH
BGEN    BIT     0CBH
TR2     BIT     0CAH
C_T2    BIT     0C9H
CP_RL2  BIT     0C8H

Your assembler will treat these names as variables and won't give errors.

List of 21 messages in thread
TopicAuthorDate
Which Compiler supports Timer 2            01/01/70 00:00      
   do by hands            01/01/70 00:00      
      Keil?            01/01/70 00:00      
         Alternative            01/01/70 00:00      
         indeed            01/01/70 00:00      
            Nothhing to do with Modern!            01/01/70 00:00      
               then maybe "user's friendly"?            01/01/70 00:00      
                  (in)Convenience            01/01/70 00:00      
               right            01/01/70 00:00      
                  Ah yes...            01/01/70 00:00      
         workaround?            01/01/70 00:00      
      Hands            01/01/70 00:00      
   *ALL* Compilers!            01/01/70 00:00      
   Re:Which Compiler            01/01/70 00:00      
      sure, but why - and it is risky            01/01/70 00:00      
         SFR            01/01/70 00:00      
            agreed            01/01/70 00:00      
   a plethora of derivatives            01/01/70 00:00      
      more on Keil asm            01/01/70 00:00      
         Keil - NOMOD51            01/01/70 00:00      
   define it            01/01/70 00:00      

Back to Subject List