AnsweredAssumed Answered

pwm with a voltage between 1v and 3v3

Question asked by cherif.feres on Apr 8, 2013
Latest reply on Apr 11, 2013 by fm
Hi all,
i have a problem, i have 6 complementary pwm (TIM1) and i used ADC to change the duty cycle. this my main function:
int main(void)
  /* System Clocks Configuration */

  /* GPIO Configuration */

  while (1)
  pulse =(ADC_GetConversionValue(ADC1)*731)/4096;

/*   TIM_OCInitStructure.TIM_Pulse = pulse;
   TIM_OC1Init(TIM1, &TIM_OCInitStructure);
   TIM_OCInitStructure.TIM_Pulse = pulse;
   TIM_OC2Init(TIM1, &TIM_OCInitStructure);
    TIM_OCInitStructure.TIM_Pulse = pulse;
TIM_OC3Init(TIM1, &TIM_OCInitStructure);*/     
the PWM's voltage is between 1v and 3v3 and it must be between 0v and 3v3.
Please help me :)