I came up with these at least a decade ago, but they still hold true:
- The first rule of embedded programming: Read the datasheet
- The second rule of embedded programming: Read the datasheet
- The third rule of embedded programming: Don’t trust the datasheet