WIR (CAN) Register Description
Register Name | WIR |
---|---|
Offset Address | 0x000000002C |
Absolute Address |
0x00FF06002C (CAN0) 0x00FF07002C (CAN1) |
Width | 32 |
Type | rwNormal read/write |
Reset Value | 0x00003F3F |
Description | Rx and Tx Watermark Settings. |
The TXFIFO Empty watermark (EW) programmed in this register will be applied to TX FIFO only. The RXFIFO Full watermark (FW) programmed in this register will be applied to RX FIFO only. The watermark register is allowed to program only when CEN=0 in SRR register. The TXFIFO Watermark EMPTY interrupt (TXFWMEMP) will continue to assert as long as the number of empty spaces in the TX FIFO is greater than the TXFIFO Empty watermark (EW). The RXFLL interrupt will continue to assert as long as the RX FIFO count remains above the RXFIFO Full watermark (FW).
WIR (CAN) Register Bit-Field Summary
Field Name | Bits | Type | Reset Value | Description |
---|---|---|---|---|
Reserved | 31:16 | rwNormal read/write | 0x0 | reserved |
EW | 15:8 | rwNormal read/write | 0x3F | TXFIFO Empty watermark TXFIFO generates an EMPTY interrupt based on the value programmed in this field. The valid range is (1-63). No protection is given for illegal programming in this field. This field can be written to only when CEN bit in SRR is 0. |
FW | 7:0 | rwNormal read/write | 0x3F | RXFIFO Full watermark RXFIFO generates FULL interrupt based on the value programmed in this field. The valid range is (1-63). No protection is given for illegal programming in this field. This field can be written to only when CEN bit in SRR is 0. |