اطلاعیه

Collapse
No announcement yet.

فرکانس pwm

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    فرکانس pwm

    فرکانس موج مثلثی در حالت PH.pwm در تایمر های avr چگونه تعین می شود
    یکی میگفت خدا چرا به حرفای ما گوش نمیده گفتم
    هان ای صنما،دل یک دله کن
    گر سر ندهم ،وانگه گله کن

    #2
    پاسخ : فرکانس pwm

    سلام ..............

    مطالب این تاپیک رو بخونید ، اگر سوالی بود ، مطرح کنید . موفق باشید.

    http://www.eca.ir/forum2/index.php?topic=5671.60
    دوستان! مدتی کمتر به سایت میام ..

    دیدگاه


      #3
      پاسخ : فرکانس pwm

      سلام.


      The PWM resolution for the phase correct PWM mode is fixed to eight bits. In phase
      correct PWM mode the counter is incremented until the counter value matches MAX.
      When the counter reaches MAX, it changes the count direction. The TCNT0 value will
      be equal to MAX for one timer clock cycle. The timing diagram for the phase correct
      PWM mode is shown on Figure 33. The TCNT0 value is in the timing diagram shown as
      a histogram for illustrating the dual-slope operation. The diagram includes non-inverted
      and inverted PWM outputs. The small horizontal line marks
      The Timer/Counter Overflow Flag (TOV0) is set each time the counter reaches BOTTOM.
      The Interrupt Flag can be used to generate an interrupt each time the counter
      reaches the BOTTOM value.
      In phase correct PWM mode, the compare unit allows generation of PWM waveforms on
      the OC0 pin. Setting the COM01:0 bits to 2 will produce a non-inverted PWM. An
      inverted PWM output can be generated by setting the COM01:0 to 3 (see Table 41 on
      page 84). The actual OC0 value will only be visible on the port pin if the data direction
      for the port pin is set as output. The PWM waveform is generated by clearing (or setting)
      the OC0 Register at the compare match between OCR0 and TCNT0 when the counter
      increments, and setting (or clearing) the OC0 Register at compare match between
      OCR0 and TCNT0 when the counter decrements. The PWM frequency for the output
      when using phase correct PWM can be calculated by the following equation:
      The N variable represents the prescale factor (1, 8, 64, 256, or 1024).





      امیدوارم مفید باشه . . .

      دیدگاه


        #4
        پاسخ : فرکانس pwm

        با عرض تشکر فراوان می شود بگویید I/O در این فرمول یعنی چه :nerd:
        یکی میگفت خدا چرا به حرفای ما گوش نمیده گفتم
        هان ای صنما،دل یک دله کن
        گر سر ندهم ،وانگه گله کن

        دیدگاه


          #5
          پاسخ : فرکانس pwm

          سلام ................

          منظور همون کلاک ورودی یا خروجیه دیگه .

          در اون قسمتی از تایمر در منوی CodeWizard که شما می خوای منبع کلاک تایمر رو تنظیم کنی ، به همین جاها مربوط میشه .
          دوستان! مدتی کمتر به سایت میام ..

          دیدگاه


            #6
            پاسخ : فرکانس pwm

            یعنی Fclc_i/o یک جمله است من فکر کردم Fclc منهای I/o است
            یکی میگفت خدا چرا به حرفای ما گوش نمیده گفتم
            هان ای صنما،دل یک دله کن
            گر سر ندهم ،وانگه گله کن

            دیدگاه

            لطفا صبر کنید...
            X