STM32: Problems Connecting a Display via LTDC.

STM32: Problems Connecting a Display via LTDC.
STM32

In one of my previous articles I described how to connect a display to an STM32 microcontroller using the LTDC interface. The article ended with a video showing an image on the display built into the DISCOVERY board. Naturally, my next wish was to run something bigger and connect it myself, so that I'd have a complete picture in my head. I ordered a 7-inch display from China...

STM32F3 and STM32F4 SPI Problems.

STM32F3 and STM32F4 SPI Problems.
STM32

When porting one of my projects from the F1 series to the F3 series, I ran into a problem: SPI frames were always 16 bits long, but I needed 8. Interestingly, the F1 series has a single DFF (Data frame format) bit for setting the SPI frame length: when it is cleared the frame is 8 bits, when set, 16. In the F3 series a 4-bit field was allocated for this, and the frame length can...

How to Program an FPGA.

How to Program an FPGA.
ПЛИС

In the previous article I described how to install Quartus, but that was only a step toward the goal. To make sure the FPGA and the programmer worked, the FPGA had to be programmed. It turned out this can be done in two ways. The first is via the JTAG interface; in this case the configuration data is loaded directly into the FPGA. The drawback of this method is that the FPGA memory is volatile and...

Installing Quartus II.

Installing Quartus II.
ПЛИС

I had long wanted to get my hands on an FPGA, but I had no clear idea of what project I would build with it. Many years later the idea still hadn't come, so I decided to take a different route: buy an FPGA and figure it out along the way. I ordered a development board with an EP4CE6 on board and a programmer for it from AliExpress...

Reducing Noise from a Switching Converter.

Reducing Noise from a Switching Converter.
Схемотехника

I have an oscilloscope that runs on a 7-volt phone charger. At some point I wanted to make it portable and add a battery to it. Batteries come in different voltages, but the only one I had on hand was the one shown in the picture. Its voltage was clearly not enough, so I decided to boost it with a switching converter...

Op-Amp Input Bias Current.

Op-Amp Input Bias Current.
Схемотехника

When studying op-amps, people often consider the ideal model, so when it comes to real circuits certain questions arise. One of them is: what is the resistor Rb in the circuit below for? Why does this question arise? Because an ideal op-amp doesn't need such a resistor; you'll only find it in a real circuit. It really is a strange resistor, and its purpose isn't immediately obvious...

STM32: How LTDC Works.

STM32: How LTDC Works.
STM32

About six months ago, one of the site's regular visitors sent me an STM32F429I DISCO development board. When I told him I didn't need it, he replied that it was a gift and I should accept it. He had also read somewhere that the RAM on the board is needed for the display and asked me what exactly for, but I didn't have an answer to that question. It was clear that the RAM acts...

STM32 DMA MEM2MEM.

STM32 DMA MEM2MEM.
STM32

In one of my previous articles I already described what DMA is and gave an example of it working together with an ADC. In that example, the ADC conversion results were written to a buffer without involving the core. This time I needed to move a buffer from one memory area to another, and I knew for sure that this can be done with DMA using MEM2MEM mode...

STM32 Frequency Measurement.

STM32 Frequency Measurement.
STM32

In one of my previous articles I talked about the STM32 capture mode and gave an example of how to use it to measure a signal's period. But this method can't ACCURATELY measure the period of a high-frequency signal (it will become clear below which signal counts as high-frequency). Suppose the frequency of the signal under test is 1MHz and our timer counts 72 million per second. Let's convert the frequency to a period...

Buying HIWIN Linear Rails from hennlich.ua

Buying HIWIN Linear Rails from hennlich.ua
Железо

About a year ago I decided to start building an SMD pick-and-place machine, and the first thing I ordered was aluminum extrusion profile and HIWIN linear rails. After reading forums, I realized that ordering from China was not an option: people write that the original looks very similar to the fake, but the Chinese ones work very poorly. I decided to buy from the official HIWIN representative in Ukraine, Hennlich Ukraine. I paid...

Repairing a Magneti Marelli Logic Car Diagnostic Scanner.

Repairing a Magneti Marelli Logic Car Diagnostic Scanner.
Железо

The other day someone brought me a Magneti Marelli Logic scanner for repair with the diagnosis "doesn't read fault codes" and asked me to take a look. Why did they bring it to me and not to where it was bought? The thing is, a new scanner costs 1000 euros, and the official representative asked 500 for the repair. I was curious to see how it's built and to earn a little, so I agreed...

Why a Starter Draws Too Much Current.

Why a Starter Draws Too Much Current.
Авто

I often hear car owners say that a car starts poorly because the starter is "dragging". By "dragging" they mean that more current than normal is flowing through the starter. They also say that the solution to this problem is replacing the bushings. I think many people wonder how more current can flow through a starter if its resistance is constant, and how replacing the bushings solves...

Frequency Synthesizer up to 200MHz.

Frequency Synthesizer up to 200MHz.

For one of my projects I needed a frequency synthesizer up to 200MHz, and I built it on the AD9958 chip. During assembly a few questions came up that were non-trivial for me, and I'd like to share how I solved them. Before this I had only read and heard from people that some chips are hard to solder, but I had never encountered it myself until I tried to solder the ad9958. The thing is, on the underside of this chip...

What Happens If You Connect a Tantalum Capacitor Backwards.

What Happens If You Connect a Tantalum Capacitor Backwards.
Схемотехника

Everyone who designs or repairs electronics knows that there are polarized capacitors, which must be connected in a strictly defined way, and if such a capacitor is connected incorrectly (with reversed polarity), it will explode. Usually these capacitors have a stripe on them, but its meaning can differ depending on the capacitor type. On aluminum capacitors the stripe...

A Dremel for the Electronics Hobbyist.

A Dremel for the Electronics Hobbyist.
Железо

The name of the Dremel company has long become a generic term for any high-speed rotary tool. In fact, Dremel's product range isn't limited to high-speed rotary grinders; they also make gas soldering irons, blowtorches, glue guns and many other tools. I needed a "dremel" for working on metal...

Writing Your Own Bootloader for STM32, Part 2.

Writing Your Own Bootloader for STM32, Part 2.
STM32

While I was finishing the previous article, I came across a thread on Radiokot discussing what format to use for sending firmware to a bootloader. I had the same question, and at the end of the previous article I described why it is more convenient to send firmware as a hex file than as a binary; those interested can read it here. So, we need to look at the record types in a hex file and extend the code from the previous article. Everything...

Writing Your Own Bootloader for STM32.

Writing Your Own Bootloader for STM32.
STM32

In one of my previous articles I described how to flash an STM32 using the bootloader and explained how it works. For those who haven't read it, let me remind you that a bootloader is essentially a program that lives in the MCU and can rewrite its memory, i.e. update the firmware. I think someone may wonder why write a bootloader yourself if you can use the built-in one. The answer to this question is very simple...