
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 derived from MAINCLK. The division factor N of the clock pres-
caler (see Fig. 9) defines the baud rate of the module as shown below. N is fixed by mask option to 2.
fMAINCLK = 8.0MHz
N
baud rate / kbit/sec
1
2
3
4
125
62.5
31.25
15.625
With this option a trade off between speed and EMI performance of 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. Bit 5 of interrupt option register 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 controlled with BUSIE of register BPCR (see section I/O Port).
The input pin BUSIN an the output pin BUSOUT of the CAN line interface can be directly connected to a
single wire VBAT compatible serial bus.
The slew rate SRBUSOUT of the bus output driver is 3 - 6V/
s. It can be adjusted to 0.5 , 1.5 , 2.5 SR
by mask option. The bus input line BUSIN has a supply voltage dependent threshold together with suffi-
cient hysteresis to suppress line spikes. BUSIN and bus output line BUSOUT pins are protected against
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 impedance characteristic.
If the voltage at bus input BUSIN exceeds Vin ov an overvoltage condition is recognized and stored in
interrupt flag BOVI of bus interface register BIR. This bit can generate a maskable interrupt request at 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 system reset.
Suppressing all 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 operating range make this interface suitable for automo-
tive bus system.
MICROCONTROLLER SECTION (continued)
-
+
OUT
IN
BOVI BIE
BIR
INT#2
-
+
VBAT
RPU
C L
Bus
to CAN Controller
VS
BUSOUT
BUSIN
Figure 9. CAN Bus Line Interface Block Diagram.
L9942
16/21