Beetwise

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:

  1. Enter the value as hex with the prefix 0x, as binary with the prefix 0b, or as a decimal value.
  2. Set the bit width of the register.
  3. Set the signed mode if the register holds a negative value.
  4. Select a bit to change it.

Masks in common use

Masks in common use
MaskBinaryPurpose
0x0100000001Test bit 0
0x0F00001111Keep the low nibble
0xF011110000Keep the high nibble
0x7F01111111Clear the top bit
0x8010000000Test the top bit
0xFF11111111Keep the low byte
0xFFFF16 bits setKeep 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 editor

Questions 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.