![](https://csdnimg.cn/release/download_crawler_static/86088611/bg5.jpg)
2.2 Bit Naming Convention
2.2 位命名约定
Register bits can have an individual function or be part of a bit group that have a joint function: An
individual bit could be a bit that enables a module, e.g. the USART ENABLE bit. A bit group can consist of
two of more bits that jointly select a specific configuration of the module that they belong to. A bit group
offers up to 2
n
selections, where n is the number of bits in the bit group. The two bits that control the
USART Receive plete interrupt level, RXINTLVL[1:0], is an example of a bit group. These two bits offer the
following selections:
寄存器位可以有一个单独的函数,或是一个位组的一部分,有一个共同的功能:一个单独的位可以是启用一个模块
的位,如USARTENABLE位。一个位组可以由两个或两个以上的位组成,这些位共同选择了它们所属的模块的特
殊配置。一个位组提供多达2
n
个选项,其中的n是位组中位的数量。这两个位控制的USART接收结束中断级别,
RXINTLVL [1:0 ] ,是一个位组的一个例子。这两个位提供以下选项:
Table 2-1. RXINTLVL bits and corresponding interrupt level selection.
表 2-1. RXINTLVL位和相应的中断级别选项
Interrupt level selection 中断级别选项
Medium level interrupt 中级中断
High level interrupt 高级中断
Bits that are part of a group will always have a number suffix. Bits that are not part of a bit group will
never have a number suffix. A Timer/Counter control register D has two bit groups, EVACT and EVSEL.
The bits in these groups have a number suffix, while the EVDLY bit, which is not part of a bit group has
no number suffix.
作为一个组的一部分的位,将始终有一个数字后缀。不是一个位组的一部分的位,永远不会有一个数字后缀。计时
器/计数器控制寄存器D有两个位组: EVACT和EVSEL 。在这些组中的位都有一个数字后缀,而EVDLY位不是
一个位组的一部分,因此它没有数字后缀。
Table 2-2. Bits groups and bit names for bits in Timer/Counter Control register D – CTRLD.
表 2-2.适用于计时器/计数器控制寄存器D - CTRLD 中的位的位组和位名称