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 16:48
Read: times


 
#95275 - Turn off/on the PWMed pin 'mannualy'
PCA CookBook: ...a 0% duty cycle can be obtained by writing to the port pin directly with the CLR bit instruction...
Can a 100% duty cycle be similarly obtained by writing to the port pin directly with the SETB instruction? Or SETB simply has no effect in this situ? Sometimes it's necessary to turn off/on the PWMed output 'mannualy'; CLR bit works well to turn it off, but MOV CCAPnH,#0 can't be used to turn it on quickly Since a write to this register is asynchronous, a new value is not shifted into CCAPnL for comparison until the next period of the output: that is, when CL rolls over from 255 to 00.

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