![Infineon 82C900 Application Note Download Page 27](http://html1.mh-extra.com/html/infineon/82c900/82c900_application-note_2055171027.webp)
AP29002
Standalone TwinCAN Controller
Using special features of the 82C900
Application Note
26
V 1.0, 2004-02
Application example for the parallel interface
This example configures with the described functions both CAN-Nodes of the 82C900
to a baud rate of 1 Mbaud. Message object 0 is setup as a receiving object for node A
with the receive interrupt triggering INTnode 0. Message object 1 is set up as a
transmit object for node B and message object 2 is a transmitting object of node A. All
transmit objects have two data bytes.
After the configuration message object 1 transmits the data {0x55, 0xAA} with the ID
0x0001 on node B. The message is received by message object 0 at node A. Interrupt
CC10INT (pin 2.10 of C167CR) is triggered from INT0 (OUT0 of 82C900). The
interrupt function reads the data from the 82C900 and sends it back via message
object 2 with the ID 0x0002. The transfers can be watched with a CAN-Analyzer or an
Oscilloscope. The source code for this example is in the “parallel” directory.
Figure 6
Schematic of the example application
C A N - B u s 1 M B a u d
8 2 C 9 0 0
A
B
M S G 0 r e c e i v e
M S G 2 t r a n s m i t
M S G 1 t r a n s m i t
C 1 6 7 C R
8 - B i t D / A B u s
C o n t r o l l b u s
/ O U T 0
P 0 - P 7
P 0 L
P 2 . 1 0
I N T 0
2 4 M H z
2 2 p F
2 2 p F
M O D E 0
M O D E 1