Monthly Archives: April 2022

Square-wave and boolean-modulated output using sampling

Abstract Tones of a specified frequency can easily be produced on nearly all mcus (microcontrollers) using pwm (pulse-width modulation). The output is a square wave. This post explores the use of sampling to produce frequency waves. Although this is more … Continue reading

Advertisement

Posted in Uncategorized | Leave a comment

#libopencm3 examples for stm32f411

The examples may work on other STM32 microcontrollers, with modification. Such examples include: a basic blink sketch, timers, exti, newlib integration with uart, spi, dma, i2c, pwm, systick, ssd1306, ds3231. So, quite a wealth of things to choose from. Check … Continue reading

Posted in Uncategorized | Leave a comment

My #rp2040 dev board wish-list

Here’s what I want to see in a dev board: Put the pins closer together (longitudinally, of course) so that the board can be inserted into a standard 40-pin IC socket. Forget castellations. Number the pins on the topside of … Continue reading

Posted in Uncategorized | Leave a comment

A nightmare function to kill you in your sleep in #golang

Clickbait title much? I am not a golang programmer. I’m mostly C/C++. I had played with golang many many years ago. I didn’t like it much at the time. I recently thought about parsing a binary file using golang, but … Continue reading

Posted in Uncategorized | Leave a comment

ANN: ssd1306 clean-up for rp2040

One of these days I’ll actually figure out suitable abstractions for libraries. The big problem is that it different SDKs use different APIs, so how can we rationalise them all into one big blob that works? Everything starts out as … Continue reading

Posted in Uncategorized | Leave a comment

Some thoughts on libopencm3

My random thoughts on libopencm3, in no particular order Where’s my Raspberry Pi Pico RP2040 port? I haven’t used it for awhile, but I’m thinking of getting back into it. I veer towards either the HAL or roll-my-own on CMSIS. … Continue reading

Posted in Uncategorized | Leave a comment

A barely working I2C DS3231 for the Pico RP2040

One “trick” I learned back in the late 90’s is that compiling code is easy if you just delete the stuff that doesn’t compile. With this in mind … I wanted to get a DS3231 accurate clock working for my … Continue reading

Posted in Uncategorized | Leave a comment