Optimization method for CPU to access i2c data
The invention discloses an optimization method for accessing i2c data by a CPU (Central Processing Unit), relates to the technical field of SSDs (Solid State Disks), provides a method for transmitting i2c equipment data through DMA (Direct Memory Access), and reduces the occupation of CPU resources....
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an optimization method for accessing i2c data by a CPU (Central Processing Unit), relates to the technical field of SSDs (Solid State Disks), provides a method for transmitting i2c equipment data through DMA (Direct Memory Access), and reduces the occupation of CPU resources. And the CPU is notified that the DMA module has completed data transmission through interruption, so that the CPU can obtain the data at the first time after the data transmission is completed, and the temperature reading process of the SSD is accelerated. When data transmission goes wrong, the DMA can generate an error signal and return the error signal to the CPU, the CPU is notified to carry out error processing on the data read this time, and the stability of the SSD is improved.
一种CPU访问i2c数据的优化方法,涉及SSD固态硬盘技术领域,提供了通过DMA传输i2c设备数据的方法,减少了对于CPU资源的占用。通过中断通知CPU此次DMA模块已经完成数据的传输,保证能在数据传输完成的第一时间使CPU获取到数据,加快SSD盘读取温度的过程。DMA在数据传输出现问题时,能产生错误信号返回给CPU,通知CPU对此次读取到的数据进行错误处理,提高了SSD盘的稳定性。 |
---|