2024-01-10 05:44 AM
Hi,
I wan't to use the stm32 as described in the video
https://controllerstech.com/stm32-timers-9-one-pulse-mode/
with the difference that I uses the trm4 and the input trigger is channel 1.
Operation is ok but applying the signal from a 3.3v signal generator lowers it to 2.3v! It's as if the input resistance of the trigger was a little too low. But I can't find anything about this. I applied this same signal to an input on capture, and there no problem, the signal remains at 3.3v.
Do you have any idea about the cause of this drop in signal?
Michel
2024-01-10 06:26 AM
Which STM32? What hardware? Which pin? How is that pin set in GPIO? What else is connected to that pin?
JW
2024-01-10 06:31 AM
It's the STM32F411 on the nucleo F411. The input pin is PB6, which is connected to nothing else but connectors CN10(17) and CN5(3)
MM
2024-01-10 06:31 AM
Th ouput is PB7
2024-01-10 06:38 AM
So, you say that you've connected generator output to PB6, and at that moment generator's output amplitude decreased from 3.3V to 2.3V?
If you hold the reset button, does the amplitude return to 3.3V?
JW
2024-01-10 06:40 AM
yes
2024-01-10 11:46 PM
That "yes" is to which one the two questions?
JW
2024-01-11 12:42 AM
Hi,
Sorry for the answer ;-(
So, yes, the generator's output decreased from 3.3v to 2.3v when I connect it on PB6.
And yes, the signal returns to 3.3v when I press the reset button or when I upload the program.
Michel
2024-01-11 02:51 AM
It then means that PB6 is set as output, either directly as GPIO Out, or indirectly as an AF which is set to output by the peripheral (e.g. TIM).
I don't know what exactly did you want to achieve and what did you do, the webpage you've linked to does not seem to mention PB6.
Read out and check/post content of TIM and relevant GPIO registers.
JW
2024-01-11 04:04 AM
As I said, the guy on the web page uses the timer 1 and I use the timer 4. So that' why you will not find PB6 on this site, but PA9(Time1 ch2)
And as i select the timer configurator ( .ioc) , the channel 1 is automaticly setting as en input.. And by the way, it works
T
And as I use it as a timer input, I can't setting it as a GPIO input
But I'm aggre, it seem like a pin setting as a ouput. Or may be some input resistance too low...
Michel