AP29002
Standalone TwinCAN Controller
Using special features of the 82C900
Application Note
35
V 1.0, 2004-02
Figure 8
Configuration of the 82C900 for the Shared-Gateway-Mode
The parallel interface is used to configure the 82C900. See the description of the used
functions in the description of the parallel interface. The following functions configure
Node A for 1M Baud and Node B for 125K Baud:
// Node A 1 MBaud, IMC ist taken into account*/
void init_NodeA(void)
{
P_SendByte(ACR,0x41); // set bit CCE in ACR
P_SendByte(ABTR,0x02);
//set BRP=2
P_SendByte(ABTR+1,0x23)// set DIV8X=0, TSEG2=3, TSEG1=4, SJW=1
P_SendByte(AIMR0,0x01) //take IMC0 into acount for INTID gen.
P_SendByte(ACR,0x00); // clear INIT, CCE in ACR
}
C A N - B U S 1 1 M B a u d
C A N - B U S 1 2 5 K B a u d
N o d e A
N o d e B
M S G O B J 0 , I D 1 , d ir e c t t r a n s m is s io n s o f
r e c e iv e d fr a m e s o n t h e d e s t in a t io n
s id e ( G D F S = ‘ 1 ’ ) , n o r e m o t e fr a m e t r a n s f e r t o
t h e s o u r c e s it e ( S R R E N = ‘ 0 ’) .
M S G O B J 1 , I D 2 , d ir e c t t r a n s m is s io n s o f
r e c e iv e d fr a m e s o n t h e d e s t in a t io n
s id e ( G D F S = ‘ 1 ’ ) , n o r e m o t e fr a m e t r a n s f e r t o
t h e s o u r c e s it e ( S R R E N = ‘ 0 ’) .