And… here we are

This week what we have all been fearing has happened to me: GitHub Copilot generated code for me which seems to meet all the requirements but which I don’t understand very much at all.

To date GitHub Copilot for me has just been mostly a useful auto-complete tool and it hasn’t given me any code which I didn’t understand. But with this code (to control two different hardware timers/counters on my Arduino) I don’t really understand it at all. I have passing familiarity with some of the registers used because I saw them named in the datasheet (which I have only skimmed so far) but basically I don’t understand how this works.

It is tempting to ignore the fact that I don’t fully understand and move on, but there’s a part of me which wants to return to the datasheet so I can understand what every assignment GitHub Copilot offered actually does and what every value it calculated implies. Is that the best use of my time?

Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C

Today I learned about Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C (Fourth Edition) by Yifeng Zhu while watching Lecture 9: Interrupts on YouTube. The full list of associated lectures are here: Short Lectures.

Gah!

I am way behind on my videos for In The Lab With Jay Jay, but it’s not for lack of trying! I’ve recorded the video for project 9 of the Maxitronix 20in1 something like five times now, but I still can’t release it because the circuit will not work as advertised. It’s suppose to be a demo of a monostable multivibrator, which is also known as a one-shot multivibrator, but the circuit isn’t working the way that a monostable multivibrator is supposed to work. I’m still in the process of debugging it. I think the problem is a problem with instructions and not my implementation (the instructions are fairly low quality and unreliable in my experience so far), but I haven’t arrived at the bottom of this one yet. I will continue to try and solve this conundrum tomorrow.

The SCSI Bus and IDE Interface: Protocols, Applications and Programming (2nd Edition)

I have this wonderful old book The SCSI Bus and IDE Interface: Protocols, Applications and Programming (2nd Edition). It was published in 1997 but is still available for purchase through Amazon.

The book comes with a floppy disk (that’s right: a floppy disk!). I had to buy a USB floppy disk drive to read it. I have made the content from the disk available in a tarball, here: scsi.tgz.

If you just want to read the files, those are here: