The invention discloses a
CAN bus controller. The
CAN bus controller comprises a housing, a register management
logic module and a detection control module, and the register management
logic module and the detection control module are installed in the housing. A
watchdog timer and a
clock check
timer are integrated in the detection control module. The
watchdog timer is used for carrying out zero clearing when a
microprocessor carries out read-write operation on the register management
logic module, and carrying out counting in dependence on the frequency of an external
crystal oscillator
clock, and generating an overflow interrupt
signal when the counter is overflowed; the
clock check
timer is used for counting the frequency of the external
crystal oscillator clock, carrying out zero clearing when an external
microprocessor carries out read-write operation on the clock check
timer, and generating an overflow interrupt
signal when the counter is overflowed The overflow interrupt
signal is used for controlling the register management logic module to stop transmit-receive operation to a
CAN bus, counting serves as actual counting, the external
microprocessor compares actual counting with expected counting, when the actual counting is inconsistent with the expected counting, the CAN
bus controller is controlled to stop transmit-receive operation to the CAN
bus.