
CAN Controller and Interface
The CAN controller module ST6-CAN1 handles all frame types according to CAN Specification 2.0A.
The module is supplied with a clock signal derivedfrom MAINCLK. The division factor N of the clock pres-
caler(see Fig. 9)definesthe baudrateof themoduleas shownbelow.N is fixedbymask optionto 2.
f
MAINCLK
= 8.0MHz
N
1
2
3
4
baud rate/ kbit/sec
125
62.5
31.25
15.625
With thisoption a tradeoff betweenspeed and EMI performanceof the bus can be achieved.
The interrupt output of the CAN controller is ored with bus interface interrupt and connected with inter-
rupt input #2. Bit5 of interruptoptionregister IOR has to be cleared.
The CAN controller input and output signals are accessible in two ways: via bus line interface or via I/O
ports PA0 and PA1 (see Fig. 8). This is controlledwith BUSIE of registerBPCR (see sectionI/O Port).
The input pin BUSIN an the output pin BUSOUT of the CAN line interface can be directlyconnected to a
single wire VBATcompatibleserial bus.
The slew rate SRBUSOUT of the bus output driver is 3 - 6V/
μ
s. It can be adjustedto 0.5
, 1.5
, 2.5
SR
by mask option. The bus input line BUSIN has a supply voltage dependentthresholdtogether with suffi-
cient hysteresisto suppressline spikes.BUSIN and bus output line BUSOUT pins are protectedagainst
overvoltage, short to GND and VS and can also be driven beyond VS and GND. During lack of VS or
GND the output shows high impedancecharacteristic.
If the voltage at bus input BUSIN exceeds Vin ov an overvoltage condition is recognized and stored in
interrupt flag BOVI of bus interfaceregister BIR. This bit can generatea maskable interrupt requestat in-
terrupt input #2. BOVI is RESET by software only. If the overvoltage situation is still present, BOVI re-
mains set. Bits 0 ... 5 of register BIR are not implemented. They are read as zero. This register is
cleared at systemreset.
Suppressingall 4 classes of ”Schaffner”signals BUSIN and BUSOUT pins can be loaded with short en-
ergy pulses of max.
±
0.2mJ. All these features together with a high possible baud rate of 125kbaud,
controlled output slope for low EMI and a wide operatingrange make this interface suitable for automo-
tivebus system.
Figure 9. CAN Bus Line InterfaceBlock Diagram.
MICROCONTROLLER SECTION
(continued)
-+
OUT
IN
BOVI BIE
BIR
INT#2
-+
VBAT
RPU
CL
Bus
to CAN Controller
VS
BUSOUT
BUSIN
L9942
16/21