Hot answers tagged

10 votes
Accepted

Difference between open drain and push-pull modes

Open-drain depends on a pullup resistor to provide the high state, while the low state is actively created by a transistor. So the pullup network has relatively high impedance to VDD and very low ...
user avatar
  • 4,985
7 votes

Problems increasing VCO frequency above datasheet recommendations

Well, 720 MHz is 66% over the 432 MHz limit so highly unlikely it will work. As you have correctly calculated, you can achieve 168 MHz as the highest core clock when 48 MHz USB clock is required. That ...
user avatar
  • 87.1k
6 votes

Smooth wave plotting using 3 inch thermal printer

Without reading the datasheet, it is obvious from these lines that you operate on a number of bits: ...
user avatar
  • 12.7k
4 votes

Problems increasing VCO frequency above datasheet recommendations

Is it safe? No, it is not. If it is a hobby project run on your desk - you can experiment. But if you want to put it into the drone - never do it. In commercial projects - never do it. One of my ...
user avatar
  • 2,279
4 votes
Accepted

ADC doesn't start from 0V

1M\$\Omega\$ is too high for the on-chip ADC source impedance (it depends on how you are using the ADC, and the information is in the MCU datasheet, I'm not going to evaluate how you are using it, ...
user avatar
4 votes

Measuring capacitance with STM32

You have the GPIO going to the capacitor through a 1 Meg resistor, and then you've connected the ADC input to it. What is the impedance of the ADC input? If I read the datasheet correctly it is 50 k. ...
user avatar
  • 3,416
3 votes
Accepted

STM32) Why DMA can't approach global variable?

Your compiler/linker is placing your dst_buffer into the RAM section at 0x20000000. If you check the STM32H7 family reference ...
user avatar
  • 13.2k
2 votes
Accepted

STM32H743 MDMA can't access APB2

The big reason the DMA isn't transferring is that it isn't actually connected to the peripheral. In most Cortex implementations I've seen, there are multiple memory buses. The ST implementation isn't ...
user avatar
  • 2,341
1 vote

Using MDMA for buffer manipulation on STM32H743vit

The random number generator only supports interrupts, so has no mechanism to signal to any DMA controller when a new value is available. One way to do it is of course to set up a timer to generate DMA ...
user avatar
  • 87.1k
1 vote

Cannot configure timer to 10µs on STM32F401 device

I got my solution: there wasn't any problem with the initialization. The problem was that in the stm32f4 series and beyond, you have to set freeze bits in the DBGMCU_APB1_FZ register. This is used if ...
user avatar
1 vote

Measuring capacitance with STM32

In order to use measure capacitance and inductance we use AC sources. Emulate a AC sine source using the microcontroller , make a Sauty bridge then feed the differential input of the Sauty bridge to ...
user avatar
1 vote

Measuring capacitance with STM32

The proper way to measure capacitance is with a constant current or by impedance ratios at some frequency. Consider the timer method. Use two threshold voltages, (one could be 0V) with a difference ...
user avatar
1 vote
Accepted

USART stop bit not pulled high during nRF update

The problem was the clock setting (low accuracy clock was used probably) solution is here: https://devzone.nordicsemi.com/f/nordic-q-a/87580/issue-with-updating-nrf52832-over-usart ...
user avatar
1 vote

Offset in creating delay between two PWM in STM32 board

I have a hardware solution, but you need to use TIM3 or TIM4 instead of TIM6. Timers can be configured to trigger each other on specific events. Here, both TIM1 & TIM2 are configured in [Slave ...
user avatar
  • 1,132
1 vote

Offset in creating delay between two PWM in STM32 board

This could be caused by a difference between the two timers being used. Timer 1 has break inputs. Timer 2 has not. And because of that I think the call to ...
user avatar
  • 16.2k
1 vote
Accepted

Conditions in Timers (STM32F103C6)

The first error is not having enough room for the string. You need at least 3 characters to hold two characters and the terminating null character. Basically, if the temperature is larger than 9 ...
user avatar
  • 87.1k
1 vote

Logic analyser/trace error in Keil uVision5 with Nucleo M4 Board

Solved! Inattention. "Solder Bridge 8" is labeled as "SB8", but I thought it was "Jumper 8". "SB8" is located at the side of the CPU, I just soldered it. The ...
user avatar
1 vote

Using quadrature encoder with STM32 MCU

I would use (along with smaller debounce capacitors) a Schmidt trigger circuit to connect with the counters on each leg A and B. It will remove the pesky noise without crazy amounts of capacitance. ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible