01h 是什么数字格式或符号?

What number format or notation is 01h?

我正在审查此 NEC document 用于对投影仪进行编程,该投影仪使用数字格式显示 RS232 命令示例,例如:20h + 81h + 01h + 60h + 01h + 00h = 103h 从文档的其他部分看来 h = 15,尽管我可能是错的。

不好意思问,请问这是什么数字格式? 20h103h

十六进制

20h == 0x20 == 32

好久没看到这种写法了。我记得它被用于旧 PC BIOS/DOS 中断表:http://spike.scu.edu.au/~barry/interrupts.html

这是十六进制。

20h = 32

01h = 1

类似于 0x 表示法。例如。 0x20 = 20h = 32.

在您链接的文档的第 2.1 节中:

Command/response A series of strings enclosed in a frame represents a command or response (in hexadecimal notation).

hexadecimal.

这意味着 16 而不是 10 作为基数。
所以数字是 0 1 2 3 4 5 6 7 8 9 A B C D E F.

20h + 81h 相加等于 A1h
或 32 + 129 = 161.

其他符号是0x00(C语言)