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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/18/06 20:24
Read: times


 
#122598 - code post.....
Responding to: ???'s previous message
Below are the sections of code I am looking to change.....the crystal speed is 11.0592MHz

Thank you,

Dave



;****************************************
;TIMER AND SERIAL PORT SETUPS....
;These must be performed on all RESET conditions, due to
;the INTEL RESET ALGORITHM WHICH CLEARS ALL SFR's.....
;
IF (PORT2)
ST50: mov TMOD,#00100101B ;T1 for Baud
mov TH1,#0FDH ;T0 for Counter (HSC)
setb TR1 ;Run T1 Baud

clr TR0 ;Hold T0
mov TH0,#0
mov TL0,#0





*****************************************
IF (VER40)
AN00: mov DPTR,#(RLY1 + 148)
movx a,@DPTR
cjne a,#00,AN01
ENDIF
clr HSCL
clr TR0 ;Turn off the Counter
sjmp AN05
;If RLY 149 On Copy Register Value
AN01: jb HSCL,AN02 ;HSC alreay on jump.
mov TH0,#0 ;Otherwise set up counter.
mov TL0,#0
setb TR0
setb HSCL

***************************************
IF (VER40)
AN02: mov a,TH0
mov DPTR,#TC1
movx @DPTR,a
inc DPTR
mov a,TL0
movx @DPTR,a
ENDIF

List of 31 messages in thread
TopicAuthorDate
Interupt question......            01/01/70 00:00      
   quick answer..            01/01/70 00:00      
   Noise            01/01/70 00:00      
   Perplexed......            01/01/70 00:00      
   Interrupt            01/01/70 00:00      
      does not matter            01/01/70 00:00      
         Attack            01/01/70 00:00      
            You did ask for it            01/01/70 00:00      
         Interruptifobia            01/01/70 00:00      
            There's not always a performance penalty            01/01/70 00:00      
               there is always an exception            01/01/70 00:00      
                  the controller task            01/01/70 00:00      
   very busy processor......            01/01/70 00:00      
      most likely it is not            01/01/70 00:00      
         PLC ?            01/01/70 00:00      
            since forever            01/01/70 00:00      
   Definatly a PLC....            01/01/70 00:00      
      a link            01/01/70 00:00      
      The application may be a PLC, but the chip is not            01/01/70 00:00      
         I do not think that is what David does            01/01/70 00:00      
   code......            01/01/70 00:00      
   Sorry......            01/01/70 00:00      
      Just post            01/01/70 00:00      
         code post.....            01/01/70 00:00      
            Posting Code and Idea            01/01/70 00:00      
            Where are ....            01/01/70 00:00      
   Ok back on this interupt routine            01/01/70 00:00      
      put an inverter on the pin            01/01/70 00:00      
   ZERO CROSS DETECTOR....            01/01/70 00:00      
      Saif, please and a note            01/01/70 00:00      
         actually...            01/01/70 00:00      

Back to Subject List