ICP DAS USA mPAC-7186EXD-CAN User Manual page 23

Table of Contents

Advertisement

Interrupt Type
Receive Interrupt
Transmit Interrupt
Error Warning Interrupt
Data Overrun Interrupt
Wake-up Interrupt
Error Passive Interrupt
Arbitration Lost Interrupt
Bus Error Interrupt
Use one-byte value to implement the interrupt. For example, if Receive
and overrun interrupt are needed in the BasicCAN(CAN 2.0A) mode. Set the
IntMode value to 0x09(That is 0x01+0x08.).
 CANBaud: Use a long int to set this parameter. For example, if
users want to set CAN baud to 125K bps. Use the value 125000UL.
 BT0, BT1: Set the special user-defined baud rate. Users can set
arbitrary baud with these parameters. But users need to have the
background of SJA1000 CAN controller and 82C251 CAN
transceiver, and calculate the values of BT0 and BT1 by
themselves (The clock frequency of CAN controller is 16MHz.).
 AccCode, AccMask: The AccCode is used for deciding what kind of
ID the CAN controller will accept. The AccMask is used for deciding
which bit of ID will need to check with AccCode. If the bit of
AccMask is set to 0, it means that the bit in the same position of ID
need to be checked, and the bit value ID need to match the bit of
AccCode in the same position.
I-7188XBD-CAN/μPAC-7186EXD-CAN user manual (ver.1.0.3, May/09/2014)
When a message has been received without errors, the
receive interrupt will be triggered.
When a message has been successfully transmitted or the
transmit buffer is accessible again, the transmit interrupt will
be triggered.
If the error or bus status is set or clear, the error interrupt will
be triggered.
If a message was lost because there was not enough space
for that message in the FIFO (FIFO has 64 bytes), the
overrun interrupt will be triggered.
When the CAN controller is sleeping and bus activity is
detected. The Wake-up interrupt will be triggered.
If CAN controller has at least one error counter exceeds the
protocol-defined level of 127 or if the CAN controller is in the
error passive status, the Error Passive Interrupt will be
triggered.
When the CAN controller lost the arbitration and becomes a
receiver. The Arbitration Lost Interrupt will be triggered.
When the CAN controller detects an error on the CAN bus,
the Bus Error Interrupt will be triggered.
Meaning
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7188xbd-can

Table of Contents