Register viewer
A register viewer shows every bit of a value at the same time.
Set the bit width to 8, 16, 32 or 64 bits.
Select a single bit to change it, and read the new value in hex, decimal and binary.
Try the register viewer in the bit editor
An 8-bit register with the value 0xB6. Edit the expression or select a bit to flip it.
7
6
5
4
3
2
1
0
0xB6
hex · 8 bits
- binary
- 0b10110110
- value
- 182
The register viewer step by step
Inspect a register value:
- Enter the value as hex with the prefix 0x, as binary with the prefix 0b, or as a decimal value.
- Set the bit width of the register.
- Set the signed mode if the register holds a negative value.
- Select a bit to change it.
Masks in common use
| Mask | Binary | Purpose |
|---|---|---|
| 0x01 | 00000001 | Test bit 0 |
| 0x0F | 00001111 | Keep the low nibble |
| 0xF0 | 11110000 | Keep the high nibble |
| 0x7F | 01111111 | Clear the top bit |
| 0x80 | 10000000 | Test the top bit |
| 0xFF | 11111111 | Keep the low byte |
| 0xFFFF | 16 bits set | Keep the low two bytes |
Where the register viewer is used
A hardware register packs several fields into one value.
A bit view shows which fields have the value 1 without a manual conversion.
A paste from a log puts the value straight into the viewer.
The register viewer: points to note
- A change of the bit width can change the value. The register drops the higher bits when the width becomes smaller.
- The byte order applies to bytes, not to the bits inside a byte.
- A signed mode change does not change the bits, only the value that you read.
The full bit editor
The full editor holds many values, evaluates expressions across them, and reads live values from a serial port.
Open this value in the full editorQuestions about the register viewer
- Which bit widths are available?
- The tool supports 8, 16, 32 and 64 bits, which are the widths of common hardware registers.
- Can I paste a value from a log?
- Yes. Paste a hex, binary or decimal value into the page and the tool creates a register for it.
- Does the viewer support little endian order?
- Yes. Set the byte order for each register separately.