Application of RM838 Ethernet PHY chip DP83848C

introduction

DP83848C is a 10/100 Mbps single physical layer (PHY) device with good robustness, full function and low power consumption produced by National Semiconductor Corporation. It supports MII (media independent interface) and RMII (reduced medium independent interface), making the design simpler and more flexible; at the same time, it supports 10BASE ~ T and 100BASE-TX Ethernet peripherals, which is well compatible with other standard Ethernet solutions Sex and versatility.

MII (Medium Independent InteRFace) is a medium-independent interface specified by IEEE802.3u. Its main function is to connect the standard Ethernet interface between the media access control layer (MAC) sublayer and the physical layer (PH-Y), and is responsible for MAC and Communication between PHY. Because MII requires up to 16 signal lines, the resulting I / O port requirements and power consumption are large, and it is necessary to simplify the number of MII pins. Therefore, RMII (Reduced Medium Independent Interface) is proposed. ), The simplified MII.

1 Hardware design

1.1 Circuit design

The receiving and sending lines of DP83848C are each a pair of differential lines, which are connected to the network line after passing through an Ethernet transformer with a transformation ratio of 1: 1. The main functions of the Ethernet transformer are impedance matching, signal shaping, network isolation, and filtering noise from both the network and the device. Typical applications are shown in Figure 1.

DP83848C transceiver line

Figure 2 is the connection circuit between DP83848C and MAC. Among them, Xl is an active oscillator of 50 MHz.

Connection circuit between DP83848C and MAC

1.2 PCB layout

For layout, a 19.9% ​​precision 49.9 Ω resistor and a 100 nF decoupling capacitor should be placed close to the PHY device and through the shortest path to the power supply. As shown in Figure 3, two pairs of differential signals (TD and RD) should be routed in parallel to avoid short stubs, and try to ensure that the length is matched to avoid common mode noise and EMI radiation. Ideally, there should be no crossovers or vias on the signal line, which will cause impedance discontinuity, so its number should be minimized; at the same time, the differential line should be as far as possible, and the signal should not be The line spans the divided plane, as shown in Figure 4. Signals crossing a divided plane will cause unpredictable loop current, which is likely to cause deterioration of signal quality and EMI problems. Note that in Figures 3 and 4, the shaded part is the wrong method.

2 RMll mode description

The RMII mode reduces the connection pins of the PHY while maintaining the existing characteristics of the physical layer device.

RMII is composed of reference clock REF_CLK, transmission enable TX_EN, transmission data TXD [1: 0], reception data RXD [1: 0], carrier sense / reception data valid CRS_DV and reception error RX_ER (optional signal). On this basis, DP83848C also increases the RX_DV receive data valid signal.

2. 1 REF_CLK——Reference clock

REF_CLK is a continuous clock that provides timing reference for CRS_DV, RXD [1: O], TX_EN, TXD [1: O], RX_DV, and RX_ER. REF_CLK is provided by the MAC layer or external clock source. The REF_CLK frequency should be 50 MHz ± 50 × 10-6, with a duty cycle between 35% and 65%. In RMII mode, data is transferred 2 bits at a time with a clock frequency of 50 MHz. Therefore, RMII mode requires a 50 MHz active oscillator (not a crystal oscillator) connected to the X1 pin of the device.

2.2 TX_EN——Transmit enable

TX_EN indicates that the MAC layer is putting the double-bit data to be transmitted on TXD [1: O]. TX_EN should be synchronously confirmed by the first nibble of the preamble, and remain confirmed during the loading of all pending double-bit signals. Before the first rising edge of REF_CLK following the last 2 bits of a frame of data, the MAC needs to invert TX_EN. The change of TX_EN is synchronous with respect to REF_CLK.

2.3 TXD [1: 0] —— Send data

The conversion of TXD [1: O] is synchronous with respect to REF_CLK. After TX_EN is valid, PHY takes TXD [1: 0] as the sending end.

In 10 Mbps mode, the frequency of REF_CLK is 10 times the data rate in 10 Mbps mode. Therefore, the value on TXD [1: 0] must remain stable during 10 pulses to ensure that the DP83848C can sample every 10 cycles. The transmission timing is shown in Figure 5, and the transmission delay is listed in Table 1. Among them, PMD is a physical media depen-dent interface.

Send timing

2.4 RXD [1: 0] —— Receive data

RXD [1: 0] conversion is synchronized with REF_CLK. In each clock cycle after CRS_DV is valid, RXD [1: O] receives two bits of recovered data from DP83848C. In some cases (such as before data recovery or an error occurs), the predetermined value of RXD [1: O] is received instead of the recovered data. After the confirmation of CRS_DV is released, RXD [1: O] is "00", indicating that it enters the idle state. After CRS_DV is confirmed, before generating the correct receive decoding, DP83848C will ensure that RXD [1: 0] = “00”.

The recovery data provided by DP83848C is always in the form of nibbles or paired double-bit signals, which is true for all data values ​​starting from the preamble. Because CRS_DV is asynchronously confirmed, it cannot be assumed that the "00" data before the preamble will be in the form of a two-bit signal.

In 100 Mbps mode, confirm in CRS_DV

In the subsequent normal receiving process, RXD [1: O] will remain "00" until the receiver detects the correct start string delimiter (STart St-ream Delimiter, SSD). Once the SSD is detected, the DP83848C will drive the preamble ("01"), followed by the Start of Frame. Delimiter (SFD) ("01" "01" "01" "11"). The MAC should start the data after SFD. If a reception error is detected, RXD [1: 0] will be replaced with the reception string "01" before the carrier activity ends. And because the remaining data in the frame is replaced, the MAC parity will reject the wrong packet. If a wrong carrier (bad SSD) is detected, RXD [1: O] will be replaced with "10" until the end of the reception event. In this case, RXD [1: O] will change from "00" to "10" without indicating the leading character ("01").

In 10 Mbps mode, after CRS_DV is confirmed, RXD [1: O] will remain "00" until the DP83848C has a recovery pulse and can decode the received data. When there is valid received data, RXD [1: O] receives the recovered data value with "01" as the preamble. Because the REF_CLK frequency is 10 times the data rate in 10 Mbps mode, the MAC samples the value on RXD [1: 0] every 10 cycles. The receiving timing is shown in Figure 6, and the receiving delay is listed in Table 2.

Receive timing

2.5 RX_DV-receive data is valid

Although RMII does not require it, DP83848C still provides a RX_DV signal. RX-DV is a Receive Data Valid signal that does not incorporate CRS. When the first correct recovery data (preamble) or pseudo carrier detection arrives, RX_DV is confirmed, and the confirmation is released after the last two bits of the recovery data are transmitted. By using this signal, the full-duplex MAC no longer needs to recover the RX_DV signal from the CRS_DV signal.

2.6 CRS_DV——Carrier sense / receive data is valid

When the receiving medium is in a non-idle state, the PHY confirms CRS_DV. In carrier detection, CRS_DV is asynchronously confirmed according to the standards related to the working mode. In 10BASE_T mode, this event occurs when the squelch passes. In 100BASE-TX mode, this event occurs when two non-adjacent zero values ​​are detected in 10 bits.

As mentioned in the RMII specification (version 1.2), carrier loss will cause CRS_DV de-acknowledgement synchronized with the REF_CLK cycle, which appears in the first two bits of the RXD [1: O] nibble (ie, CRS_DV is only deactivated on the nibble boundary confirm). After the first confirmation of CRS_DV, if DP83848C still has data bits to be added to RXD [1: O], then during the REF_CLK period, DP83848C should confirm CRS_DV on the second double bit of each half byte, and The first double bit of a nibble is released for confirmation. In this way, from the beginning of the nibble boundary to the end of CRS (Carrier Sense / Received Signal) before RX_DV, CRS_DV rolls over at 25 MHz (100 Mbps mode) or 2.5 MHz (10 Mbps mode) At the end of the DP83848C there are still data bits to be transmitted).

DP83848C can be well compatible with the RMII specification (version 1.0) through programming. In this mode, CRS_DV will asynchronously confirm with CRS, but the confirmation will not be released until the last data is transmitted, and CRS_DV will not be flipped at the end of the packet. Although this mode cannot accurately recover the CRS signal from CRS_DV, it can make the design of the MAC layer simpler.

During the wrong carrier activity time, CRS_DV remains confirmed. Once CRS_DV is confirmed, the data on RXD [1: O] can be considered valid. However, since the confirmation of CRS_DV is asynchronous with respect to REF_CLK, the data on RXD [1: 0] should be "00" before the received signal is decoded correctly.

2.7 RX_ER-receive error

According to the provisions of IEEE802.3 standard, DP83848C provides an RX_ER output. RX_ER can maintain one or more REFCLK cycles to identify an error that has occurred during the current PHY to frame transmission process (MAC sublayer may not be able to detect, but the PHY can detect coding errors or other errors). The change of RX_ER is synchronous with respect to REF_CLK.

Since DP83848C interferes with RXD [1: O] by replacing the original data with fixed data, MAC does not need RX_ER, and only CRC check (that is, parity check) can detect errors.

2.8 Conflict detection

RMII does not provide MAC with a conflict flag. For half-duplex operation, the MAC must generate its own collision detection from the CRS_DV and TX_EN signals. To achieve this, the MAC must recover the CRS signal from the CRS-DV signal and perform a logical AND with TX_EN. Note that CRS_DV cannot be used directly because CRS_DV may be triggered at the end of the frame to mark CRS de-acknowledgement.

3 RMII mode configuration

The DP83848C's RMII mode configuration includes both hardware and software aspects.

3.1 Hardware configuration

As shown in Fig. 2, DP83848C X1 (34) foot provides a 50 MHz CMOS level oscillation signal. At power-on and reset, force DP83848

C enters RMII mode. The method is to connect a pull-up resistor to RX_DV / MII_MODE (pin 39).

3.2 Software configuration

Software configuration

The software initialization flow of PHY is shown in Figure 7.

PHY software initialization process

Conclusion

DP83848C provides a connection scheme with the RMII standard interface, which can reduce the number of pins required from the MAC to the PHY interface. This solution enables design engineers to reduce system design costs while maintaining all the features in the IEEE802.3 specification. Because of this, DP83848C can better adapt to industrial control and factory automation, as well as general embedded systems and other applications.

Double Sided PCB - the most popular type of PCB in the industry


While single-sided PCBs are simple and ideal to use when possible, many circuits require two sides. Double-sided PCB boards offer a wide variety of possibilities for circuit board designers because they have more surface area and flexibility when routing traces. Using two sides instead of one also allows for a smaller board size overall, which can be important when building small-scale, integrated devices.Double-sided PCB is one of the most common types of PCB. Moreover, the two-sided PCB and the single-sided PCB are basically the same to some extent. The difference is that the single-sided PCB has only one conductive surface. That is to say, the one-sided PCB has copper on one side of the board, but the two-sided PCB has conductive layer on each side. The dielectric layer is surrounded by the copper layer of the circuit and welding masks on both sides. Technically, single-sided circuit boards will not be copper plated in boreholes. Passing holes allow manufacturers to create traces on both sides that are adjacent to each other and connected between layers. PCB manufacturers use double-sided PCBs for products that require elementary to intermediate circuit complexity. This type of PCB does not provide as much circuit complexity or density as multi-layer PCB, but it is the most economical choice in many applications.

Nowadays, double-sided Printed Circuit Boards can be designed and manufactured in a variety of ways, including silver and gold surface treatment, high and low temperature and solder coating. This versatility enables them to power almost unlimited numbers of projects at cost-effective prices. Because of these advantages of double-sided PCB, double-sided PCB technology has become the most popular type of PCB in the industry.


2 L PCB



What is Double-Sided PCB?


Strictly speaking, the Double-Sided PCB is one kind of the important PCB boards which is useful in PCB industry. They allow for the routing of traces around each other by jumping between a top and bottom layer by way of vias. Generally speaking, There are lines on both sides! The common PCBs can be seen such as, Rigid PCB , Flexible circuit board, Aluminum PCB and Metal Core PCB.

It need circuits on both sides. Via is the holes on boards, coated with metal and it can connect wires on both sides. Because the area of Double-sided PCB is twice as large as the Single-sided PCB,  and because the wiring is interleaved, which is better suited for circuits that are more complex.

Someone may feel confused that if one Double-sided PCB, wires on both sides while Electronic parts only one side, is this a Double-sided board or a single onel? The answer is obvious. This kind of board is a Double-sided board, it's just install a component on the Double-sided board.So the question is, if a double-sided PCB has circuits on both sides, but only one side has electronic accessories, is it a double-sided PCB or a single-sided PCB? The answer is obvious. This kind of board is a double-sided circuit board. It only installs a component on the double-sided PCB.

Double sided circuit boards are one of the most popular types of PCBs as they enable manufacturers to produce more complex circuits, which can benefit uses in higher technology applications and electronics. There is an abundance of applications and electronics which double sided PCBs can be used in including: lighting systems, vending machines, amplifiers, car dashboards, and many more.


Double Layers PCB expands design capability and reduces physical sizes.


Double sided PCB



Double-Sided PCB material


The manufacturing base material of PCB is rigid glass fiber laminate. In the actual manufacturing process, many types of PCB materials can be used. Which material to use is determined by the PCB designer to meet electrical, temperature and other related characteristics. However, the standard material commonly used is fiberglass, which we usually call FR4.

FR, which technically stands for "flame retardant", does not mean specific material, but refers to material grade. However, it is a glass fiber reinforced epoxy laminate with flame retardant standard UL94V-0.

FR4 is the most common and typical choice of rigid PCB materials. Usually we classify them into three categories:

Normal Tg = Material melting point over 130 degrees Celsius
Medium Tg = Material melting point more than 150 degrees Celsius
High Tg = Material melting point more than 170 degrees Celsius



Double-Sided PCB construction



Construction of Double Sided PCB

Double Sided PCB Layers



Double Sided PCB Layers



Double Sided PCB-Top Side and Button Side


Benefits of Double Sided PCBs


Double-sided PCB is a widely used component in various applications, because it can achieve greater flexibility in designing more complex circuits. The following are some advantages of double sided PCB:


  • Improving circuit density and complexity: By having conductive layers on both sides, the component space of double-sided PCB is twice as large as that of single-sided PCB. It can easily increase the density and complexity of the circuit.

  • Double-sided PCB is widely used: Double-sided PCB has circuit complexity and can be used for many common electronic products at reasonable prices. Use double-sided PCB to make popular electronic products for daily use.

  • More suitable for more complex projects: Double-sided PCB is the same size as single-sided PCB, but has twice the component space. Design more complex projects with the same amount of space.

  • Cost-effective manufacturing: Double-sided PCB has the ability to be used in a large number of projects, and the price is lower than multi-layer PCB, avoiding paying extra costs.


  • Provide more design possibilities: at relatively low cost, you can greatly expand the number of projects available for your functions and budget. Creating innovations that a single-tier PCB cannot achieve.

  • Redirect the PCB current while keeping the top free: You can use the bottom of the double-sided PCB as grounding copper casting for sinking and output current.


Double sided PCB boards is different from Single-sided PCB.


Single-sided PCB is the basic one, the spare parts are concentrated in one side, and the circuit is concentrated on the other.Because the wires only appear on the one side of themso we called Single-sided PCB. Because the single-sided PCB has many strict restrictions on the design circuit (because only one side, the wiring cannot cross and must move around the individual path), so it only used on earlier circuits.

Single-sided PCB diagram mainly used Network Printing(Screen Printing), that is, resist on copper surface, After etching, mark the welding resistance, and then finish the hole and the shape of the part by punching.

Single sided printed circuit boards are widely used in many electronics whereas double sided circuit boards are often used in higher technology electronics.

Single sided printed circuit boards are commonly used in an array of electronics and applications, including: camera systems, printers, radio equipment, calculators, and much more.


Benefits of Single Sided PCBs


Single sided circuit boards are considered to be one of the best choices for a wide range of applications due to the advantages that it provides. Here are a few advantages of single sided printed circuit boards:


  • The cost of manufacturing and producing single sided circuit boards are very cost-effective and affordable due to the simple and basic designs. These types of PCBs are widely understood by various manufacturers which makes single sided boards the best choice for circuit designs that are simple and low density.


  • As single sided boards are less complex, there will undoubtedly be fewer problems during the manufacturing stage, which enables manufacturers to produce these boards at higher volumes and at faster speeds. Due to this, they are commonly used in many applications and electronics.


With higher volume orders, single sided circuit boards can be more affordable and available at reduced costs.


Double-Sided PCB Applications

Many of the electronics found in everyday life function on double-sided PCBs. Applications of double-sided PCBs include:


  1. Industrial controls
  2. Power supplies
  3. Converters
  4. Control relays
  5. Instrumentation
  6. Regulators
  7. UPS systems
  8. Power conversion
  9. HVAC
  10. LED lighting
  11. Hard drives
  12. Printers
  13. Phone systems
  14. Power monitoring
  15. Automotive dashboards
  16. Line reactors
  17. Test equipment
  18. Amplifiers
  19. Traffic systems
  20. Vending machines


Double-Sided PCB fabrication


Double Sided PCB Home Made DIY



DIY Double Sided PCB

Learn more about our products and services through the following links:

Double Sided PCB

2 Layer PCB,Double Sided Fr4 PCB,pcb prototype service,Double Layer PCB

JingHongYi PCB (HK) Co., Limited , https://www.pcbjhy.com