<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>unsignedtype</title>
		<link>https://unsignedtype.com/</link>
		<description>Recent content on unsignedtype</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sat, 05 Sep 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://unsignedtype.com/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Before the debugger, write down the question</title>
				<link>https://unsignedtype.com/posts/debugging/</link>
				<pubDate>Sat, 05 Sep 2026 00:00:00 +0000</pubDate>
				<guid>https://unsignedtype.com/posts/debugging/</guid>
				<description>&lt;p&gt;Start with one expected event: a function should run, a pin should change, or a byte should arrive. Then choose one observation that tells you whether that event happened.&lt;/p&gt;&#xA;&lt;p&gt;A breakpoint can show whether execution reaches a line. A spare GPIO can mark a section of code for measurement. A serial message can reveal a state transition. Each observation changes the system a little, especially its timing, so keep the instrumentation focused.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Getting comfortable with bit masks</title>
				<link>https://unsignedtype.com/posts/bits/</link>
				<pubDate>Sat, 05 Sep 2026 00:00:00 +0000</pubDate>
				<guid>https://unsignedtype.com/posts/bits/</guid>
				<description>&lt;h2 id=&#34;define-a-mask&#34;&gt;Define a mask&lt;/h2&gt;&#xA;&lt;p&gt;A mask names the bits you want to work with. For a simple unsigned flags variable, a one in position three can be written as &lt;code&gt;1u &amp;lt;&amp;lt; 3&lt;/code&gt;. Giving that mask a name keeps the intent visible.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-c&#34; data-lang=&#34;c&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;const&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;uint32_t&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;ready_mask&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1u&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;flags&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;|=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;ready_mask&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;   &lt;span class=&#34;c1&#34;&gt;// Set the bit.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;flags&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;&amp;amp;=&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;~&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ready_mask&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;  &lt;span class=&#34;c1&#34;&gt;// Clear the bit.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;flags&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;^=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;ready_mask&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;   &lt;span class=&#34;c1&#34;&gt;// Toggle the bit.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;test-the-bit&#34;&gt;Test the bit&lt;/h2&gt;&#xA;&lt;p&gt;To test it, use &lt;code&gt;(flags &amp;amp; ready_mask) != 0&lt;/code&gt;. These examples operate on an ordinary variable. Hardware registers can have special read and write behavior, so check the register documentation before applying the same operations to a peripheral.&lt;/p&gt;</description>
			</item>
			<item>
				<title>The first blink is a useful milestone</title>
				<link>https://unsignedtype.com/posts/bringup/</link>
				<pubDate>Sat, 05 Sep 2026 00:00:00 +0000</pubDate>
				<guid>https://unsignedtype.com/posts/bringup/</guid>
				<description>&lt;p&gt;A minimal program gives you fewer things to reason about. Before integrating an application, establish that you can program the device, reach your entry point, and control a known output.&lt;/p&gt;&#xA;&lt;p&gt;For an LED, trace the schematic first: which pin drives it, and is it active high or active low? Follow the device documentation for clock and pin configuration. Keep the initial program small enough that you can explain every step.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
