Blogroll
-
Recent Posts
Archives
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- July 2020
- June 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
Categories
Meta
Recent Comments
Author Archives: mcturra2000
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
Drum sequencer using stm32l432kc, cmsis, #raspberrypi, #dlang
I’m on TikTok now. Go grampa! None of my videos will show loot unboxings like the young and beautiful people do, though. I wanted to share a little drum sequencer I made. There’s not much to look at, because hey, … Continue reading
Posted in Uncategorized
Leave a comment
A buffering DAC for #raspberrypi using #stm32
Rationale Linux is not an RTOS (real-time OS), so you can’t reliably use timers to produce music without creating distortions. It is possible to use libraries, such as portaudio, to produce music with proper music output. The problem is that … Continue reading
Posted in Uncategorized
Leave a comment
Sending data over I2C using bit-banging
This post shows how to send data from an STM32 using the HAL. Hints on adapting it to other mcus is also given. So it is useful for actually understanding the mechanics of sending data. CubeMX In CubeMX, set PA9 … Continue reading
Posted in Uncategorized
Leave a comment
A simple ring buffer for microcontrollers
The simplest thing that could possibly work: It assumes that data is of type uint32_t. Adjust it to suit your taste. Call cb_init() in your startup code. A discussion of circular (aka ring) buffers can be found here. I am … Continue reading
Posted in Uncategorized
1 Comment
STM32L432KC SPI LL IRQ slave using
Assumptions: STM32L432KC SPI receive-only slave SPI1 Use of the CubeIDE Low-Level library Interrupt-handling of received data 16-bit data (easily changed) “The simplest thing that could possibly work” Let me first define an auxiliary function: Then call the following functions in … Continue reading
Posted in Uncategorized
Leave a comment