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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/30/05 12:55
Read: times


 
#90676 - PWM and frequency
Responding to: ???'s previous message
...set PCA counter in PWM mode.

Using this setting," Is it possible to generate frequencies of 1Khz and 500 Hz ??????"


The only way you can combine PWM and varying frequencies is by driving the PCA from a timer.

With the PCA only you do NOT do PWM, but use the PCA as a timer.

P89C51Rx2 data sheet page 37
"16-bit Software Timer Mode
The PCA modules can be used as software timers by setting both the ECOM and MAT bits in the modules CCAPMn register. The PCA timer will be compared to the module’s capture registers and when a match occurs an interrupt will occur if the CCFn (CCON SFR) and the ECCFn (CCAPMn SFR) bits for the module are both set (see"

Erik

List of 19 messages in thread
TopicAuthorDate
PWM generation using microcontroller            01/01/70 00:00      
   Whats your intention.            01/01/70 00:00      
      PWM generation using microcontroller            01/01/70 00:00      
         Freq. or duty cycle or both ?            01/01/70 00:00      
         PWM?            01/01/70 00:00      
            Amplitude?            01/01/70 00:00      
               Amplitude control by PWM            01/01/70 00:00      
                  I agree...            01/01/70 00:00      
                     Back to the question            01/01/70 00:00      
                     Remote hugging..            01/01/70 00:00      
                        Sorry guys...            01/01/70 00:00      
                           PWM generation using microcontroller            01/01/70 00:00      
                              Not at all!            01/01/70 00:00      
   Varying both frequency and duty cycle.            01/01/70 00:00      
   possibly this way            01/01/70 00:00      
      thanxs but..................            01/01/70 00:00      
         PWM and frequency            01/01/70 00:00      
            This thread is fuzzy because            01/01/70 00:00      
         Both frequency and amplitude? Yes!            01/01/70 00:00      

Back to Subject List