CAN bus is one of the most promising field buses. It is widely used in industrial control, automotive electronics, security and other fields due to its excellent performance. Designing the CAN-bus communication interface is a very important link, and the correct operation of the equipment is closely related to it. As shown in Figure 1, an actual CAN-bus communication unit circuit diagram is given. The circuit structure is: LPC2119 (32-bit ARM7 chip with internal integrated CAN controller) + isolated CAN transceiver (CTM Module).
Figure 1 CAN-bus communication unit schematic diagram
LPC2119/2129/2194 processor contains 2 or 4 CAN modules, which can support the operation of multiple CAN buses at the same time, so that the device can be used as a gateway, switch, router of multiple CAN buses in industrial or automotive applications. The biggest feature of PHILPIS's LPC2119/2192/2194ARM7TDMI-S processor that distinguishes it from the LPC2214/2124 processor is the built-in CAN controller. As shown in Figure 1.1, a CAN node circuit based on LPC2119 is given. For the LPC2119 chip, the minimum system requires two sets of power supplies, reset circuits, and crystal oscillator circuits. The P0.14 pin is connected to a pull-up resistor (a resistor connected to the positive power supply) to disable the ISP function. The circuit uses an isolated CAN transceiver module to ensure that the controller can operate normally when the CAN bus is severely interfered.
int main()
Data length
Remote frame, data frame flag
Standard frame, extended frame flag
Frame
First four bytes of data
Last four bytes of data
End initialization
}
The above is a CAN node composed of LPC2119+CTM isolated CAN transceiver, which introduces the advantages of isolated CAN transceiver: simplified design, stable and reliable, and can achieve complete independence and isolation of each node on the CAN bus in terms of electrical and power supply. The software design part briefly introduces the CAN message sending process and some routines based on the FullCAN function library.
Keywords:32-bit
Reference address:Design of CAN node based on 32-bit ARM7
Figure 1 CAN-bus communication unit schematic diagram
LPC2119/2129/2194 processor contains 2 or 4 CAN modules, which can support the operation of multiple CAN buses at the same time, so that the device can be used as a gateway, switch, router of multiple CAN buses in industrial or automotive applications. The biggest feature of PHILPIS's LPC2119/2192/2194ARM7TDMI-S processor that distinguishes it from the LPC2214/2124 processor is the built-in CAN controller. As shown in Figure 1.1, a CAN node circuit based on LPC2119 is given. For the LPC2119 chip, the minimum system requires two sets of power supplies, reset circuits, and crystal oscillator circuits. The P0.14 pin is connected to a pull-up resistor (a resistor connected to the positive power supply) to disable the ISP function. The circuit uses an isolated CAN transceiver module to ensure that the controller can operate normally when the CAN bus is severely interfered.
CAN controller sends sample program
int main()
Data length
Remote frame, data frame flag
Standard frame, extended frame flag
Frame
First four bytes of data
Last four bytes of data
End initialization
}
The above is a CAN node composed of LPC2119+CTM isolated CAN transceiver, which introduces the advantages of isolated CAN transceiver: simplified design, stable and reliable, and can achieve complete independence and isolation of each node on the CAN bus in terms of electrical and power supply. The software design part briefly introduces the CAN message sending process and some routines based on the FullCAN function library.
Previous article:ARM coprocessor detailed explanation
Next article:Let's learn mini2440 bare metal development (I)--The first LED light is lit
- Popular Resources
- Popular amplifiers
Latest Microcontroller Articles
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
Guess you like
- Foxit Reader cannot add bookmarks?
- Keeping the right direction: Designing a fault circuit for automotive lighting systems
- MSP430-Clock System and GPIO
- EMC Compliant Single-Chip Resolver-to-Digital Converter (RDC) Reference Design
- TI C6000 Data Storage Processing and Performance Optimization
- Six tips for PCB layout design to make drawing easier!
- [Sipeed LicheeRV 86 Panel Review] 9- Flashing LED
- Watch the video to win a JD card | Highlights of Micron's keynote at Computex Taipei 2022
- Are there any step-down chips with lower quiescent current?
- Smallest BOM for Bluetooth Low Energy using STM32WB wireless MCU