Monthly Archives: February 2022

Astonishingly, my portfolio is actually up

I saw via Hacker News that the MOEX (Moscow Exchange) server doesn’t seem to be working. The exchange has been closed since Fri Feb 25th, but it’s still odd that the server name cannot resolve. One poster asserted that it … Continue reading

Posted in Uncategorized | Leave a comment

Portfolio update: it’s a mess

I generally don’t follow the news. I pick it up second-hand. There’s a lot of RNS news out for the shares in my portfolio, so I was interested in seeing how they did. I have been underperforming the market lately. … Continue reading

Posted in Uncategorized | Leave a comment

Rant: Stop saying you’re sustainable

Time for an “old man shouts at clouds” post. Can we all stop talking out of our arses, please? So I go on Google’s home page, which I haven’t done for a long time, and they claim “Carbon neutral since … Continue reading

Posted in Uncategorized | Leave a comment

STM32L432KC hardware random number generator

The STM32L432KC has an RNG (Random Number Generator) to allow you to generate “true” random numbers. More importantly from my perspective is that it does it fast. I will be using the LL (low-level) library of CubeIDE because I don’t … Continue reading

Advertisement

Posted in Uncategorized | Leave a comment

Russia as an investment

I see that my shares in JRS (JPMorgan Russian Securities) are down 8.8% today, although they were down about 10% earlier on. The price is 616p. What’s all the fuss about? The Mirror reports: Russian President Vladimir Putin could soon … Continue reading

Posted in Uncategorized | Leave a comment

UART TX on STM32L432KC using CMSIS

Let’s do the simplest thing that could possibly work. I’m using a Nucleo-32 board. It sends serial info on pin PA2, which you can pick up via the USB link that is incorporated on the board. So you don’t need … Continue reading

Posted in Uncategorized | Leave a comment

Set STM32L432KC to 80MHz using CMSIS

If you want to speed up your STM32L432KC to 80MHz, here’s the code to do it: It does rely on my out gpio functions to set pins high and low, but you get the idea. I’ve adopted the approach of … Continue reading

Posted in Uncategorized | Leave a comment

Generating a sawtooth wave using integers

Using floats to generate waves for a microcontroller is conceptually straightforward, but tends to have some drawbacks: Your MCU might not even have an FPU. Computation will be expensive! You can lose significant bits, which may be problematical when you’re … Continue reading

Posted in Uncategorized | Leave a comment

Basic set-up of DAC on STM32L432KC using CMSIS

The simplest thing that could possibly work. Assumptions: I’m using a Nucleo-32 STM32L432KC board I’m just interested in DAC1 No fancy extras like interrupts, triggering or DMA Configure the DAC in main() initialisation section: To write a value to the … Continue reading

Posted in Uncategorized | Leave a comment

#RP2040 edges out over #STM32

I like both the Raspberry Pi Pico and my STM32F411. I often hop backwards and forwards between them. Although I like both, the Pico edges out over my blackpill for the following reasons: It’s cheaper. I mean, holy crud, at … Continue reading

Posted in Uncategorized | Leave a comment