资 源 简 介
This paper describes two different methods to detect the CAN baudrate with Infineon CAN devices. These methods allow non-initialized CAN nodes to connect to a running CAN system, although the current baudrate is not known. Hereby the running CAN system is not disturbed.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.1 Detection with CAN Analyzing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.2 Measurements of dominant CAN bits via a Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.2.1 CAN Baudrate Detection with C16xC Microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . 51.2.2 Measurement of dominant CAN bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.2.3 CAN Bit Time Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.2.4 Program Code: baudrate detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.2.4.1 Baudrate Detection Routine “bauddet.c” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.2.4.2 Dominant bit measurement “measure.c” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10