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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/01/03 08:38
Read: times


 
#42672 - timing problem
Greeting to all!!!

I face the problem to set the various duty cycles using timer..

Let say i want using timer 0 to generate 3 various duty cycles( timer 1 at the same time also generate another 3 different duty cycles).. how can i set the interrupt to let this done...

sample code/description about this problem

1.move the biggest data among first 3 data( for var1, var2, and var3), let say var1, to thtl.
2.start the interruot, set p1.0 =1
3.if thtl == var2, set p1.1 =1
4 if thtl == var3, set p1.2=1
5 interrup occur, all i/o pin = 0

;;;sample data;;;;;
var1: DB 90, 95, 85
var2: DB 70, 99, 99
var3: DB 75, 85, 90

My problem is how to determie the status of var1-var3 and assign it to the thtl , and also for the description 3 and 4.

Have someone have the idea to done this?? idea or sample ocde??

Thanks for your kindly help :)

List of 11 messages in thread
TopicAuthorDate
timing problem            01/01/70 00:00      
   RE: timing problem            01/01/70 00:00      
      RE: timing problem            01/01/70 00:00      
         RE: timing problem            01/01/70 00:00      
            RE: timing problem            01/01/70 00:00      
               RE: timing problem            01/01/70 00:00      
                  RE: timing problem            01/01/70 00:00      
                     RE: timing problem            01/01/70 00:00      
                        RE: timing problem            01/01/70 00:00      
         RE: timing problem            01/01/70 00:00      
            RE: timing problem            01/01/70 00:00      

Back to Subject List