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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/09/05 10:15
Read: times


 
#104960 - here is the program
Responding to: ???'s previous message
Hi,

This is the part of init function to define the register.

C_T2 = 0;
T2MOD = 0x01;
RCAP2L = 0xFD; // 1 MHz clock out
RCAP2H = 0xFF;
TL2 = RCAP2L;
TH2 = RCAP2H;
ET2 = 1;
EA = 1;
TR2 = 1;

From the datasheet, I only set the init function to generate the clock out (P1.0).

List of 14 messages in thread
TopicAuthorDate
Timer 2 interrupt of AT89S52            01/01/70 00:00      
   A lot of interrupts            01/01/70 00:00      
      useless            01/01/70 00:00      
         it's not interrupt, actually            01/01/70 00:00      
            post your program here            01/01/70 00:00      
               here is the program            01/01/70 00:00      
                  t2mod=2;            01/01/70 00:00      
                     still the same            01/01/70 00:00      
                        I asked almost same question but!            01/01/70 00:00      
                           I also generate PWM            01/01/70 00:00      
                              the point is            01/01/70 00:00      
                                 the point is I just made it            01/01/70 00:00      
                        retry            01/01/70 00:00      
                           Thanks a lot JW            01/01/70 00:00      

Back to Subject List