Digilent Pmod CAN Referenzhandbuch - Seite 4
Blättern Sie online oder laden Sie pdf Referenzhandbuch für Controller Digilent Pmod CAN herunter. Digilent Pmod CAN 9 Seiten.
Pmod CAN Reference Manual
Bit Name
Bit Number
MERRE
[7]
WAKIE
[6]
ERRIE
[5]
TX2IE
[4]
TX1IE
[3]
TX0IE
[2]
RX1IE
[1]
RX0IE
[0]
¹ –
This is the default value on power-up or reset
2.2.2 CANINTF
The CANINTF register (page 51) holds the flags of all the interrupts that are enabled through the CANINTE register.
If an interrupt flag is set, it must be cleared by the system board to reset the interrupt condition.
Bit Name
Bit Number
MERRF
[7]
WAKIF
[6]
ERRIF
[5]
TX2IF
[4]
TX1IF
[3]
TX0IF
[2]
RX1IF
[1]
RX0IF
[0]
¹ –
This is the default value on power-up or reset
2.2.3 CANSTAT
The CANSTAT register (page 54) provides the status of the CAN controller and the source of the interrupt flag.
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
CANINTE 0x2B
Bit Description
Message Error Interrupt Enable Bit
Wake-up Interrupt Enable Bit
Error Interrupt Enable Bit
Transmit Buffer 2 Empty Interrupt
Enable Bit
Transmit Buffer 1 Empty Interrupt
Enable Bit
Transmit Buffer 0 Empty Interrupt
Enable Bit
Receive Buffer 1 Full Interrupt
Enable Bit
Receive Buffer 0 Full Interrupt
Enable Bit
CANINTF 0x2C
Bit Description
Message Error Interrupt Flag Bit
Wake-up Interrupt Flag Bit
Error Interrupt Flag Bit
Transmit Buffer 2 Empty Interrupt
Flag Bit
Transmit Buffer 1 Empty Interrupt
Flag Bit
Transmit Buffer 0 Empty Interrupt
Flag Bit
Receive Buffer 1 Full Interrupt Flag
Bit
Receive Buffer 0 Full Interrupt Flag
Bit
Bit Values
Functional Description
0¹
1-Interrupt on error during
message reception or
transmission/0-Disabled
0¹
1-Interrupt on CAN bus
activity/0-Disabled
0¹
1-Interrupt on EFLG error
condition change/0-Disabled
0¹
1-Interrupt on TXB2
becoming empty/0-Disabled
0¹
1-Interrupt on TXB1
becoming empty/0-Disabled
0¹
1-Interrupt on TXB0
becoming empty/0-Disabled
0¹
1-Interrupt when message
received in RXB1/0-Disabled
0¹
1-Interrupt when message
received in RXB0/0-Disabled
Bit
Functional Description
Values
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
0¹
1-Interrupt pending/0-No
interrupt pending
Page 4 of 8