AFR (CAN) Register Description
Register Name | AFR |
---|---|
Offset Address | 0x0000000060 |
Absolute Address |
0x00FF060060 (CAN0) 0x00FF070060 (CAN1) |
Width | 32 |
Type | rwNormal read/write |
Reset Value | 0x00000000 |
Description | Acceptance Filter Enables. |
The Acceptance Filter Register (AFR) defines which acceptance filters to use. Each Acceptance Filter ID Register (AFIR) and Acceptance Filter Mask Register (AFMR) pair is associated with a UAF bit. When the UAF bit is 1, the corresponding acceptance filter pair is used for acceptance filtering. When the UAF bit is 0, the corresponding acceptance filter pair is not used for acceptance filtering. To modify an acceptance filter pair in Normal mode, the corresponding UAF bit in this register must be set to 0. After the acceptance filter is modified, the corresponding UAF bit must be set to 1. The following conditions govern the number of UAF bits that can exist in the. * If all UAF bits are set to 0, then all received messages are stored in the RX FIFO * If the UAF bits are changed from a 1 to 0 during reception of a CAN message, the message may not be stored in the RX FIFO.
AFR (CAN) Register Bit-Field Summary
Field Name | Bits | Type | Reset Value | Description |
---|---|---|---|---|
Reserved | 31:4 | rwNormal read/write | 0x0 | reserved |
UAF4 | 3 | rwNormal read/write | 0x0 | Use Acceptance Filter Number 4 Enables the use of acceptance filter pair 4. 1: Indicates Acceptance Filter Mask Register 4 and Acceptance Filter ID Register 4 are used for acceptance filtering. 0: Indicates Acceptance Filter Mask Register 4 and Acceptance Filter ID Register 4 are not used for acceptance filtering. |
UAF3 | 2 | rwNormal read/write | 0x0 | Use Acceptance Filter Number 3 Enables the use of acceptance filter pair 3. 1: Indicates Acceptance Filter Mask Register 3 and Acceptance Filter ID Register 3 are used for acceptance filtering. 0: Indicates Acceptance Filter Mask Register 3 and Acceptance Filter ID Register 3 are not used for acceptance filtering. |
UAF2 | 1 | rwNormal read/write | 0x0 | Use Acceptance Filter Number 2 Enables the use of acceptance filter pair 2. 1: Indicates Acceptance Filter Mask Register 2 and Acceptance Filter ID Register 2 are used for acceptance filtering. 0: Indicates Acceptance Filter Mask Register 2 and Acceptance Filter ID Register 2 are not used for acceptance filtering. |
UAF1 | 0 | rwNormal read/write | 0x0 | Use Acceptance Filter Number 1. Enables the use of acceptance filter pair 1. 1: Indicates Acceptance Filter Mask Register 1 and Acceptance Filter ID Register 1 are used for acceptance filtering. 0: Indicates Acceptance Filter Mask Register 1 and Acceptance Filter ID Register 1 are not used for acceptance filtering. |