午夜夜伦鲁鲁片免费无码-国产裸拍裸体视频在线观看-亚洲无码视频在线-学生妹亚洲一区二区-国产亚洲欧美日韩亚洲中文色

鑫景福致力于滿足“快速服務,零缺陷,輔助研發”PCBA訂購單需求。
PCBA方案設計
PCBA方案設計
EMC Design from PCB to Software Processing
09Nov
Boy 0條評論

EMC Design from PCB to Software Processing

EMC Design from PCB to Software Processing
From PCB board design of the single chip mICrocomputer to the software processing is to introduce the processing of electronic compatibility
1 Factors affecting EMC
1.1 Voltage: higher supply voltage means greater voltage amplitude and more EMIssion, while lower supply voltage will affect sensitivity
1.2. Frequency: high frequency generates more emissions, and periodic signals generate more emissions In the high frequency microcontroller system, when the equipment is switched, a current SPIke occurs; In analog systems, current spikes occur when the load current changes
1.3 Grounding: among all EMC problems, the main problem is caused by improper grounding There are three signal grounding methods: single point, multipoint, and mixed When the frequency is lower than 1MHz, the single point grounding method can be used, but it is not applicable to high frequency; In high frequency applications, multi-point grounding is used Hybrid grounding is a single point grounding method for low frequency and a multi-point grounding method for high frequency The layout of ground wire is the key. The ground circuit of high frequency digital circuit and low level analog circuit cannot be mixed as much as possible
1.4 PCB Board design: Proper Printed Circuit Board (PCB) routing is critical to preventing EMI.
1.5 Power decoupling: when the equipment is switched, transient currents are generated on the power line, and these transient currents must be attenuated and filtered The transient current/dt source from high di leads to grounding and track "trigger" voltage, and high di/dt generates large scale high-frequency current, which excites components and radiates cables The change of current and inductance through the conductor will cause voltage drop, which may be caused by the decrease of inductance or the change of current with time
PCB board

pcb board

Second, the hardware processing method of interference measures
2.1 electromagnetic compatibility design printed circuit board (PCB)
The PCB is the support of circuit components and equipment in the single-chip microcomputer system, which provides the power connection between circuit components and equipment With the rapid development of electronic technology, the density of PCB is getting higher and higher The design of quality PCB board has a great influence on the electromagnetic compatibility of single chip microcomputer system Practice has proved that even if the circuit schematic diagram is correctly designed and the printed circuit board is improperly designed, it will have a negative impact on the reliability of the single-chip microcomputer system For example, if two thin parallel lines on the printed circuit board are very close, the signal waveform and reflected noise at the end of the transmission line will be delayed Therefore, when designing the printed circuit board, attention should be paid to using the correct method, following the PCB design, and meeting the anti-interference design requirements To obtain the efficiency of electronic circuits, component layout and wire layout are very important
2.2 Input EMC design/output
In the single chip microcomputer system, I/O is also the transmission line of the interference source and the pickup source for receiving RF interference signals We generally take effective measures when designing:
(1) Adopt necessary common mode/differential mode suppression circuit, and take certain filtering and anti electromagnetic shielding measures to reduce interference
(2) Take various isolation measures (such as photoelectric isolation or magnetoelectric isolation) as far as possible to block the spread of interference.
2.3 Design of MCU reset circuit
In the single chip microcomputer system, the watchdog system plays a particularly important role in the operation of the whole microcontroller Because it is impossible to isolate or remove all interference sources, once the CPU interferes with the normal operation of the program, the combination of reset system and software becoMES an obstacle to effective error correction defense There are two commonly used reset systems:
(1) External reset system.  The external "watchdog" circuit can be designed by ourselves or built with a special "watchdog" chip However, each has its advantages and disadvantages Most special "watchdog" chips cannot respond to low-frequency "dog feeding" signals, but can respond to high-frequency "dog feeding" signals, so that "dog feeding" signals can be generated at low frequencies The reset action will not occur under the high-frequency "feed dog" signal In this way, if the program system falls into an infinite loop and the loop happens to have a signal of "feeding the dog", the reset circuit cannot be realized Correct function However, we can design a system with band-pass "dog feeding" circuit and other reset circuits, which is a very effective external monitoring system
(2) Nowadays, more and more single-chip microcomputers have their own on-chip reset systems. In summary, users can easily use their internal reset timers However, some models of SCM have too SIMple reset instructions With this kind of pipe, there is also a "feed dog" command, such as the infinite loop above, which makes it lose the monitoring function Some SCM chip reset instructions are better Usually, they write the "feed dog" signal to multiple instructions in a fixed format and execute them sequentially If there is some error, the "dog feeding" operation is invalid, which greatly improves the reliability of the reset circuit
2.4 Oscillator
Most microcontrollers have an oscillator circuit coupLED to an external crystal or ceramic resonator.  On PCB board, the lead of external capacitor, crystal or ceramic resonator shall be as short as possible RC oscillators are potentially sensitive to interference signals and can produce very short clock cycles. Crystal or ceramic resonators are selected In addition, the case of quartz crystal shall be grounded
2.5 Lightning protection measures
The single-chip microcomputer system used outdoors or the power lines and signal lines introduced into the room from the outside should be considered against the lightning strike of the system.  Common lightning protection devices are: gas discharge tube, television, etc The gas discharge tube is used when the power supply voltage is greater than a certain value, usually tens or hundreds of volts. The gas is decomposed and discharged, and the strong impulse pulse on the power line is guided to the ground TVS can be regarded as two parallel and opposite Zener diodes, which will turn on when the voltage at both ends is higher than a certain value Its characteristic is that it can transiently pass hundreds or thousands of A current
3. Software processing method for interference measures
The interaction signal generated by the electronic interaction source cannot be completely eliminated in some specific cases (such as in some cases where the electronic environment is relatively hard), and will be input to The CPU processing unit Especially for devices using bistable storage such as RAM, it often flips under strong interference, making the original storage "0" become "1", or "1" become "0"; The timing and data of some serial transmission will change due to interference; More seriously, it will destroy some important data parameters, etc; The consequences are often very serious In this case, the quality of software design directly affects the anti-interference capability of the whole system
3.1 The program will be roughly in the following situations due to electromagnetic interference:
(1) The program runs away.  This is a common interference result Generally speaking, a good reset system or software framework measurement system is enough, and it will not have too much impact on the entire operating system
(2) Infinite loop or abnormal program code operation.  Of course, this infinite loop and exception code is not intentionally written by the designer We know that program instructions are composed of bytes, some are unit tuple instructions, and some are multi byte instructions When interference occurs, the PC pointer appears Change. After that, the original code is reorganized to generate unpredictable executable code. Then, this error is fatal. It may modify important data parameters, and may generate unpredictable control of a series of error states, such as output
3.2 Measures for storage of important parameters
In general, we can use error detection and correction to effectively reduce or avoid this situation According to the principle of error detection and correction, the main idea is that when data is written, a certain number of check codes are generated according to the written data and stored together with the corresponding data; Read the code and make a decision If there is a bit error, it will automatically correct and send correct data. At the same time, the corrected data will be written back to overwrite the original error data; If there are two bit errors, an interrupt will be generated and the CPU will be notified for exception handling All these actions are automatically completed by software design, with the characteristics of real-time automatic completion Through this design, the anti-interference ability of the system can be greatly improved, thus improving the reliability of the system Principles of error detection and correction: Let's first look at the basic principles of error detection and correction The basic idea of error control is to add redundant code to the information code group in different channels according to certain rules, so that when reading information, redundant monitoring code or checking code can be used to find or automatically correct errors It most always affects a bit (bit) in a certain byte at random Therefore, if it can be designed to automatically correct bit errors and check the two digit error coding It can greatly improve the reliability of the system
3.3 Detection of RAM and FLASH (ROM)
When programming, we write some testing programs to test the data codes of RAM and FLASH (ROM) to see if there is any error.  Once it happens, it should be corrected immediately If it cannot be corrected, error instructions shall be given in time so that users can handle it When compiling a program, it is necessary to add program redundancy Adding 3 or more NOP instructions at a certain location can effectively prevent program reorganization At the same time, the flag data and detection status should be introduced in the running status of the program to detect and correct PCBtime errors

點擊
然后
聯系
主站蜘蛛池模板: 国产成人亚洲综合色| 河北真实伦对白精彩脏话| 久久久久久国产精品免费无码| 亚洲精品久久久久国色天香| 国产丰满麻豆videossexhd| 国产精品视频熟女韵味 | 337p日本欧洲亚洲大胆精品| 精品无码久久久久国产动漫3d| 无码国模产在线观看免费| 久久人人爽人人爽人人av东京热 | 亚洲人成电影免费观看在线看| 噜妇插内射精品| 中文天堂在线www| 137裸交肉体摄影| 亚欧免费无码aⅴ在线观看| 中文在线天堂网www| 天堂国产+人+综合+亚洲欧美| 精产国品一区二区三产区| 国产精品久久久久久久伊一| 精品人妻少妇一区二区三区| 女人被做到高潮免费视频| 久久久久久人妻一区二区三区| 三上悠亚网站在线观看一区二区| 中文在线中文a| 欧洲肉欲k8播放毛片| 中文字字幕在线中文乱码| 午夜亚洲理论片在线观看| 女人被男人躁得好爽免费视频 | 又大又粗又爽免费视频a片| 久久亚洲色www成人图片| 丰满少妇69激情啪啪无| 东北粗壮熟女丰满高潮| 人妻激情另类乱人伦人妻| 国产一码二码三码区别| 人妻少妇中文字幕乱码| 天天日天天干天天操| 免费看成人毛片无码视频| 国产l精品国产亚洲区久久| 少妇暴力深喉囗交3p| 成人欧美一区二区三区| 无码专区久久综合久中文字幕|