Home > other >  PWM output
PWM output

Time:09-15

Excuse me I this PWM configuration is almost nothing, why there is no output, the elder brother of the atomic routine change, stm32f1 board

CodePudding user response:

Don't know your comments if you have any questions, since the heavy mapped to PB5, how to configure the PC8

CodePudding user response:

Could you tell me how to determine the original poster is not output?

Has been measured with an oscilloscope waveform?

CodePudding user response:

Routine is part of the heavy mapped to PB5 I became completely mapped to PC6

CodePudding user response:

Routine is part of the heavy mapped to PB5 I became completely mapped to PC6

CodePudding user response:

reference 1st floor poetryTang response:
don't know your comments if you have any questions, since the heavy mapped to PB5, how to configure the PC8

I use the routine change, the original part weight map to PB5, I changed completely mapped to PC6

CodePudding user response:

Please confirm weight map to which pin, again TIM_OC3Init (), this is CH3, so which channel do you want to use

CodePudding user response:

Pc8 is the third channel mapping

CodePudding user response:

refer to the second floor Brendon_Tan response:
could you tell me how to determine the original poster is not output?

Has been measured with an oscilloscope waveform?

By a dc motor

CodePudding user response:

reference ~ 8 floor Photinia response:
Quote: refer to the second floor Brendon_Tan response:
could you tell me how to determine the original poster is not output?

Has been measured with an oscilloscope waveform?

By a dc motor


GPIO by motor directly?
If directly connect motor is driven,
If the driver board, best physical Gao Qingtu,

CodePudding user response:

Suggest the building Lord if conditional word, still use oscilloscope measure PC8 wave,

Because of this configuration is no problem,

If you have a multimeter, also can use voltage measuring PC8 voltage value,
First the TIM3 - & gt; CCR3 (TIM_SetCompare3 (TIM3, @ value) the value of the fixed,
Such as fixed to 300, namely the TIM3 - & gt; CCR3=300, this time the voltage value should be 1.1 V or so,
Such as fixed to 600, namely the TIM3 - & gt; CCR3=600, this time the voltage value should be 2.2 V or so,

Application example:
 
While (1)
{
TIM3 - & gt; CCR3=300;//& lt;=> TIM_SetCompare3 (TIM3, 300);
}


The other, the ability of GPIO driver is very small, dc motor starting current is big,
General IO mouth is not a common dc motor, just like a small cart,

CodePudding user response:

references to the tenth floor Brendon_Tan response:
suggest the building Lord if conditional word, or use the oscilloscope measure PC8 wave,

Because of this configuration is no problem,

If you have a multimeter, also can use voltage measuring PC8 voltage value,
First the TIM3 - & gt; CCR3 (TIM_SetCompare3 (TIM3, @ value) the value of the fixed,
Such as fixed to 300, namely the TIM3 - & gt; CCR3=300, this time the voltage value should be 1.1 V or so,
Such as fixed to 600, namely the TIM3 - & gt; CCR3=600, this time the voltage value should be 2.2 V or so,

Application example:
 
While (1)
{
TIM3 - & gt; CCR3=300;//& lt;=> TIM_SetCompare3 (TIM3, 300);
}


The other, the ability of GPIO driver is very small, dc motor starting current is big,
General IO mouth is not a common dc motor, just like a small cart,

Got it, thank you brother, I was directly to motor, I go test waveform
  • Related