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

Back to Subject List

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


 
#103297 - smaller code :)
Responding to: ???'s previous message
start:
mov cmod,#00h
mov ch,#00h
mov cl,#00h
mov ccapm0,#21h
setb ec
setb cr
jnb testflag1,$




pca_interrupt:
clr ccf0
jb flagrpm,second_capture
first_capture:
mov captureL,ccap0l
mov captureH,ccap0h
mov ccapm0,#21h
setb flagrpm
reti
second_capture:
clr c
mov a,ccap0l
subb a,captureL
mov rpm_captureL,a
mov a,ccap0h
subb a,captureH
mov rpm_captureH,a
setb testflag1
reti

List of 4 messages in thread
TopicAuthorDate
PCA Interrupt Help            01/01/70 00:00      
   please reduce your code to the minimum            01/01/70 00:00      
      smaller code :)            01/01/70 00:00      
   What is the clock divider set to?            01/01/70 00:00      

Back to Subject List