AP29000
Connecting C166 and C500 Microcontroller to CAN
Ways of handling the SAE 81C90/91 and the CAN Module on the C167CR / C515C
Application Note
50
V 1.0, 2004-02
-
Direction of the object (please also see table below):
-
DIR = 1:
transmit Data Frames; receive and answer Remote Frames
-
(in the following called "transmit object"),
-
DIR = 0:
transmit Remote Frames; receive Data Frames
-
(in the following called "receive object")
Table 4
CAN Module
DIR-BIT
Behaviour
Transmission
of this
message
object will
generate...
If a Data
Frame with a
matching
identifier is
received...
If a Remote
Frame with a
matching
identifier is
received...
DIR Bit = 0
=Receive Object
(
receives Data
Frames,
transmits
Remote Frames)
... a Remote
Frame. The
corresponding
Data Frame is
stored in this
MO on
reception.
... the Data
Frame is
stored.
... the Remote
Frame is NOT
answered.
DIR Bit = 1
=Transmit Object
(
transmits Data
Frames, receives
Remote Frames)
... a Data
Frame.
... the Data
Frame is NOT
stored.
... the Remote
Frame is
answered with
the
corresponding
Data Frame.
Example for a Standard CAN transmit object with 8 bytes data length:
C167CR / C515C:
MCFG_Mn = 0x88; /*Mess. Configur. Reg. n (EFn6h/F7n6h)*/
/* 1 0 0 0 1 0 0 0 */
/*|<-DLC->| D X - - */
/* I T */
/* R D */