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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/18/05 22:04
Read: times


 
#95282 - Thanks Dan.
Responding to: ???'s previous message
Dan Henry said:
I would think that when you want 0%, you would set CCAPMn to 0 and then take the respective pin low. Similarly for 100%, you would set CCAPMn to 0 and then take the respective pin high.
You actually mean CLRing bits 1 and 6 of CCAPMn(PWMn and ECOMn) before CLR/SETB the pin, Don't you. Mayebe I have to do that. Why isn't there any indication of this in the CookBook then?
... Figure 13 shows a few common duty cycles and the corresponding values for CCAPnH. Note that a 0% duty cycle can be obtained by writing to the port pin directly with the CLR bit instruction...
p.s. AT89C51RD2 page 47, Figure 21. made me understand!
Thanks Dan.

List of 3 messages in thread
TopicAuthorDate
Turn off/on the PWMed pin 'mannualy'            01/01/70 00:00      
   Disable CCAPMn, then control pin            01/01/70 00:00      
      Thanks Dan.            01/01/70 00:00      

Back to Subject List