stm32 is a single chip microcomputer, is a controlMake chips. CAN bus is a communication protocol, just like our serial port, is used for communication between devices. Just like our serial port needs a MAX232 chip for logical conversion, CAN also needs a dedicated CAN chip support.
CAN bus communication system is a serial communication, better than RS485 bus, is currently a more commonly used industrial bus. For example, the electrical part of the car uses the CAN bus to achieve communication. It is very troublesome to use ordinary single chip microcomputer to compose CAN communication, and it needs to configure CAN interface circuit.
CAN send and receiveDevice and controller are the center of data transmission, they process CAN messages respectively, and the function circuit performs signal acquisition or control tasks.
Multiple communication nodes CAN be mounted on the CAN bus, and the signals between nodes are transmitted through the bus to realize the communication between nodes.
STM32F407 platform uses TJA1040 CAN transceiver, this chip is designed for closed-loop network, with real-time, multi-host communication, differential signal transmission, non-destructive arbitration, broadcast function and other features.
1, the MCU with CAN is said to be a CAN controller, which needs to use a CAN transceiver, just as the serial port uses a 232 chip.
2, need, we use the board above all have. The chip model is TJA1043, if not, I have not been successful. Also when debugging CAN, be careful and patient, pay attention to the startup file, md is md is hd is hd.
3, the electrical appliances in the car commonly used can such as ECU and oxygen sensors will be usedcan, can is a communication standard, just like 48RS232 any chip will work as long as you meet the standard.
4, the TX RX back-end on STM32 needs to be connected to the CAN transceiver, and the transmission between STM32 and the CAN transceiver is realized through the TLL circuit of TX RX, and the data transmission between the transceiver and the CAN line end is realized by the differential voltage between CANH and CANL.
5, and CAN bus is only a communication protocol. The communication between STM32 CAN be carried out through the CAN bus for data exchange, or through the U