Ethernet interface module: The system selected the AT89C55 single-chip computer produced by Atmel with relatively high performance and price. It is oriented to measurement and control objects and embedded applications, so its architecture, CPU, instruction system, and peripheral unit circuits are specially designed according to this requirement. It has an internal FLASH program memory of up to 20 KB. The AT89C55 is fully compatible with the 8051 instruction set. The on-chip FLASH facilitates users to perform online programming. The working speed can reach up to 33 MHz, 256 B of internal RAM, 32 programmable I/O ports, 3 16-bit timers/counters, 8 interrupt sources, and supports low-power idle working mode. The Ethernet interface uses the RTL8019AS chip, which is a highly integrated Ethernet controller produced by Realtek, which can realize all the functions of the Ethernet media access layer (MAC) and physical layer (PHY). There are two RAM areas inside RTL8019AS: one is 16 KB, with addresses of 0x4000~0x7fff. To receive and send data packets, the 16 KB RAM inside RTL8019AS must be read and written through DMA. It is actually a dual-port RAM, that is, there are two buses connected to it, one bus is used for RTL8019AS to read/write or write/read the RAM, that is, local DMA; the other bus is used for the microcontroller to read or write the RAM, that is, remote DMA; the second is 32 bytes, with addresses of 0x0000~0x001F, used to store Ethernet physical addresses. The hardware interface schematic diagram of the main control chip and the Ethernet interface chip is shown in Figure 2. It is worth noting that since the maximum Ethernet packet can exceed 1,500 bytes, the on-chip RAM of AT89C55 is only 256 bytes, so it cannot store such a large packet, so a 32 KB external RAM is extended here, which can also improve the data transmission speed of the microcontroller.
CAN interface module: The main components of the CAN system are the CAN controller and the transceiver. In this design, the CAN interface module uses the SJA1000 chip and the PCA82C250 chip. The SJA1000 is an independent CAN controller. It is a replacement for another CAN controller PCA82C200 from Philips and adds a new working mode (Peli CAN) that supports the CAN 2.0B protocol. The SJA1000 mainly completes the CAN communication protocol, realizes the assembly and splitting of messages, the filtering and verification of received information, etc.
PCA82C250 is the interface between the CAN controller and the physical bus, and is mainly used to enhance the system's driving capability. In a system using a transceiver, the number of nodes can reach at least 110, while also having the ability to reduce radio frequency interference (RFI) and strong anti-electromagnetic interference (EMI). When processing this part of the circuit, there are several places to pay special attention to:
(1) Problem with the crystal oscillator circuit. Both the 89C55 and SJA1000 should have their own independent crystal oscillator circuits, and the clock output signal CLKOUT of the SJA1000 cannot be used to drive the microcontroller.
(2) The reset pin problem. Although the reset of SJA1000 is low level, it cannot be directly connected to the reset pin of the microcontroller through a NOT gate. Generally, there are two ways to solve the reset pin problem: the first is to use the I/O pin of the microcontroller to control the reset pin of SJA. The advantage is that the microcontroller can fully control the reset process of SJA; the second is to use an appropriate reset chip. In order to reduce costs, this design adopts the first method.
(3) The potential of the RX1 pin must be maintained at approximately 0.5 VCC, otherwise the logic level required by the CAN protocol cannot be formed.
(4) Pay attention to the terminal impedance matching of the cable, which directly affects whether the CAN bus can work normally and the network performance. The hardware circuit diagram of the CAN interface module is shown in Figure 3. A slope resistor R is connected to the RS pin of PCA82C250. The size of the resistor can be adjusted appropriately according to the bus communication speed.
Previous article:Circuit design of EPB parking current acquisition node system based on CAN bus
Next article:Design and Application of CAN Repeater
- Popular Resources
- Popular amplifiers
- 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)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- I didn't expect that the "King of Radiation" around us is actually this, almost every home has it
- 【LAUNCHXL-CC2650】LAUNCHXL-CC2650 unboxing test
- What kind of programming language is Python?
- GD32E231 DIY Contest (5) - Complete the driver and settings of DS1302 and the recognition of long and short keys
- [Operational amplifier parameter analysis and LTspice application simulation] Come to LTspice|Calculate the RMS value of the amplifier circuit noise...
- Share the troubleshooting of using bq34z100 chip
- The salary and development path of hardware engineers
- MSP430 series MCU-Timer_A realizes PWM
- Here are some questions about the differential signal amplifier circuit
- [Gizwits Gokit 3 Review] Part 2: Product Creation