tools

Register / Bitfield Viewer

Paste a register value, name its bit fields, and read or edit each field; bits update live.

[loading tool…]

How it works

Write the field map one line per field, NAME hi:lo or NAME bit (NAME[hi:lo] also works), then paste the value you read in the debugger. Each field is extracted as:

field = (value >> lo) & ((1 << (hi − lo + 1)) − 1)

Edit a field’s value or click any bit and the register value updates, so you can build the value to write as well as decode one you read. Overlapping fields and bits outside the register width are flagged.

The default map is STM32 USART_CR1 with the bit layout of the FIFO-capable USART (L4+, G4, H7 and newer): 0x2000800D means USART enabled, receiver and transmitter on, 8× oversampling and FIFO mode. Check the USART chapter of your part’s reference manual before relying on a bit position. The map and value are saved in the URL, so you can share a decoded register.

esc
All tools
ADC / DAC Resolution Calculator[embedded]
Base64 Encoder / Decoder[dev]
Battery Runtime Calculator[hardware]
Chmod Calculator[dev]
CRC Calculator[embedded]
Cron Expression Builder[dev]
CSV ⇄ JSON Converter[dev]
Duty-Cycle Battery Life[embedded]
Generator Wattage Calculator[hardware]
Hash Generator[dev]
HTML Entity Encoder[dev]
JSON Formatter & Validator[dev]
JSONPath Tester[dev]
JWT Decoder[dev]
LED Resistor Calculator[embedded]
LLM Memory / VRAM Estimator[ai]
Lorem Ipsum Generator[text]
Markdown Preview[text]
Markdown Table Generator[text]
Number & Float Inspector[embedded]
Number to Words[text]
Ohm's Law Calculator[embedded]
Password Generator[dev]
Quantization Size Calculator[ai]
RC / LC Filter Calculator[embedded]
Regex Tester[dev]
Register / Bitfield Viewer[embedded]
Resistor Color Code[embedded]
Roman Numeral Converter[text]
Solar Battery Bank Sizing[hardware]
Solar Panel Output[hardware]
SQL Formatter[dev]
Subnet / CIDR Calculator[dev]
Tensor Shape Calculator[ai]
Timer / PWM Calculator[embedded]
UART Baud Rate Error[embedded]
Unix Timestamp Converter[dev]
UPS Runtime Calculator[hardware]
URL Encoder & Parser[dev]
UUID Generator & Inspector[dev]
Voltage Divider Calculator[embedded]
Voltage Drop Calculator[hardware]
Wire Size Calculator[hardware]
XML Formatter[dev]
YAML Validator & Converter[dev]
Commands
Toggle theme (auto → light → dark)
Copy link to this page
Go to all tools
Lire en français
↑↓ move↵ open⌘↵ new tab