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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/16/01 19:28
Read: times


 
#8261 - RE: reg generation of PWM is concerned
I have used the 80C51FA CPU that has a PCA timer. The PCA supports a PWM mode that can be set up by the following:

MOV CMOD,#0 ; 1 Microsecond TIMEBASE @ 12 Mhz
MOV CCAPM0,#42H ; MODULE 0 IN PWM MODE
MOV CCAP0H,#128 ; 50% DUTY CYCLE
SETB CR ; START THE PCA TIMER

That's it. No additional timers, no interrupts, no CPU overhead.


List of 4 messages in thread
TopicAuthorDate
reg generation of PWM is concerned            01/01/70 00:00      
RE: reg generation of PWM is concerned            01/01/70 00:00      
RE: reg generation of PWM is concerned            01/01/70 00:00      
RE: reg generation of PWM is concerned            01/01/70 00:00      

Back to Subject List