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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/04 12:28
Read: times


 
#69154 - T2MOD......AT89C52
Hello Guys,
i,m trying to generate PWM for stepper motors by using AT89C5, I used TIMER2 in AUTO reload producing 1000Hz PWM frequency. Each time executing has entering into service routine, but unfortunatly i got some errors during executing the program,

i wanna to move "00" to the address of T2MOD "c9" but its not successed.

these are the instruction that coudln`t fix, if some of you ready to help.
i,m using Keil software, and AT89C52 MCU.

one problem with this istruction:
mov C9,#00H ;T2MOD address is C9

2nd one here:
mov T2CON,#01000100 ;start timer 2 producing 1kHz signal

the last problem with signature bytes;

ORG 8100
DB A5,E5,E0,A5 ;signature bytes
DB 253,255,0,0 ;id 253 = startup
DB 0,0,0,0 ;prompt code vector
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0
DB 255,255,255,255 ;length and checksum (255=unused)
DB 'Main Controller',0
ORG 8100+64 ;executable code begins here

Hope to here from you soon.

List of 19 messages in thread
TopicAuthorDate
T2MOD......AT89C52            01/01/70 00:00      
   RE: T2MOD......AT89C52            01/01/70 00:00      
      RE: T2MOD......AT89C52            01/01/70 00:00      
         RE: T2MOD......AT89C52            01/01/70 00:00      
            RE: T2MOD......AT89C52            01/01/70 00:00      
               RE: T2MOD......AT89C52            01/01/70 00:00      
         RE: T2MOD......AT89C52            01/01/70 00:00      
      RE: T2MOD......AT89C52            01/01/70 00:00      
         identify the coils??            01/01/70 00:00      
         identify the coils??            01/01/70 00:00      
            RE: Stepper Motors            01/01/70 00:00      
   PWM codes.......AT89C52            01/01/70 00:00      
      RE: PWM codes.......AT89C52            01/01/70 00:00      
         more explination plz            01/01/70 00:00      
            RE: more explination plz            01/01/70 00:00      
               RE: more explination plz            01/01/70 00:00      
                  RE: more explination plz            01/01/70 00:00      
                     concept            01/01/70 00:00      
                        RE: concept            01/01/70 00:00      

Back to Subject List