亚洲免费av电影一区二区三区,日韩爱爱视频,51精品视频一区二区三区,91视频爱爱,日韩欧美在线播放视频,中文字幕少妇AV,亚洲电影中文字幕,久久久久亚洲av成人网址,久久综合视频网站,国产在线不卡免费播放

        ?

        Design of IP core for IIC bus controller based on FPGA

        2015-07-06 15:03:48HUANGXiaominZHANGZhijie
        關(guān)鍵詞:中北大學(xué)總線控制器

        HUANG Xiao-min, ZHANG Zhi-jie

        (Key Laboratory of Instrumentation Science & Dynamic Measurement (North University of China),Ministry of Education, Taiyuan 030051, China)

        ?

        Design of IP core for IIC bus controller based on FPGA

        HUANG Xiao-min, ZHANG Zhi-jie

        (KeyLaboratoryofInstrumentationScience&DynamicMeasurement(NorthUniversityofChina),MinistryofEducation,Taiyuan030051,China)

        The intellectual property (IP) core for inter-integrated circuit (IIC) bus controller is designed using finite state machine (FSM) based on field programmable gate array (FPGA). Not only the data from AT24C02C can be read automatically after power on, but also the data from upper computer can be written into AT24C02C immediately under the control of the IIC bus controller. When it is applied to blast wave overpressure test system, the IIC bus controller can read and store working parameters automatically. In a laboratory environment, the IP core simulation is carried out and the result is accurate. In the explosion field test, by analyzing the obtained valid data, it can be concluded that the designed IP core has good reliability.

        field programmable gate array (FPGA); IIC bus; intellectual property(IP) core; test system

        0 Introduction

        The inter-integrated circuit (IIC) bus from Philips is a simple, two-wire and synchronous serial bus. It is applicable to the communications among various serial equipment[1]. Compared with traditional parallel bus system, IIC bus system has the advantages of simple structure, good maintainability, easy extensibility and high reliability[2]. The blast wave overpressure test system needs to read and store important working parameters automatically. In this paper, an intellectuall property (IP) core for IIC bus controller is designed for data transmission automatically among a variety of serial equipment[3-4]considering that the IP core has the advantages of less resources, high flexibility, easy portability and short development cycle.

        1 Working principle

        1.1 AT24C02

        AT24C02 belongs to electrically erasable programmable read-only memory (EEPROM) and supports IIC bus data transfer protocol. It has simple peripheral circuit, small package and low power. Especially, it is electrically erasable, therefore, it is suitable for mass storage[5]. IIC bus includes a bidirectional data wire SDA and a clock wire SCL for full duplex synchronous data transmission[6]. When IIC bus is idle, SDA and SCL must maintain keep in a high level; When IIC bus is closed, the SCL clamp in a low level. Because IIC bus interface is open drain (OD) output and open collector (OC) output, all the outputs of the bus can realize “and” logic function, which requires the output terminal of IIC bus to be connected with pull-up resistors[7]. The schematic diagram of AT24C02C is shown in Fig.1.

        Fig.1 AT24C02C schematic diagram

        1.2 IIC bus data transmission standard[8]

        The data between upper computer and AT24C02C transmitted by IIC bus is composed of start signal, address code, a number of data bytes, response signal and stop signal. When the communication starts, the upper computer sends a start signal (when SCL is high, SDA produces a falling edge), AT24C02C address code and a read/write signal (there are 7 bytes in all from the AT24C02C address and read/write control signal R/W, where R/W=“0” indicates a write operation and R/W= “1” indicates a read operation). Then SDA is set to be a high resistance state and the upper computer waits for receiving ACK response signal (AT24C02C makes SDA low), thus the upper computer can continue to send data. When the communication is completed, the upper computer sends a stop signal. In data transmission process, when SCL is in high level, SDA must ensure the stability of the data; After transmitting each one byte data, a response signal ACK must be sent by the receiver.

        With IIC bus data transmission rate of 100-400 kbps and power supply of +5 V, the input level is defined as

        VILmax=1.5V,VIHmin=3V,

        Withabroadsupplyvoltage,inputlevelisdefinedas

        VILmax=1.5VDD,VIHmin=3VDD,

        where VDD is reference voltage.

        2 IP core design

        IP core is an integrated circuit core with intellectual property and has repeated verification macro modules with specific functions. It has nothing to do with chip manufacturing process and can be embedded into different semiconductors. The soft core of IP core is the most widely used form. For the development of FPGA, IP core can provide abundant resources and make the design correspondingly become more convenient, therefore, IP core design has very practical value[9]. This paper describes the soft core design for IIC bus controller using finite state machine (FSM).

        2.1 FSM

        FSM is a general and intuitive method for digital system design. Theoretically, any complex digital design can be realized by FSM method. The state machines can be classified into two types: Moore state machine and Mealy state machine. The output of Moore state machine is a function of current input and current state; the current output of Mealy state machine is determined by its present state. This paper adopts the combination of the two types of state machines to describe the system state, of which some outputs are only related to the current state and other outputs are related to both the present state and the current input. It no only simplifies the number of the states, but also improves code universality and readability.

        2.2 Implementation of soft core[10]

        Based on integrated software environment (ISE) design suite 10.1 platform, the soft core for IIC bus controller is implemented for read/write control of blast wave overpressure test system . The work flow is shown in Fig.2.

        Fig.2 Work flow of test system

        The system clock frequency is 20 MHz, digital clock manager (DCM) module produces 1 MHz clock signal for IIC bus controller module. After power on, the system initialization starts. Before reading the working parameters from AT24C02C, the system state is set at default values. Then the sequential read mode is used to read six parameters: magnification, trigger level, sampling frequency, data storage capacity, negative delay length and sensor parameters. When the six parameters are reset again, firstly, the parameters are stored in the internal registers, and then the working parameters are output to other modules. Meanwhile, all the parameters are stored in AT24C02C by page write mode. Thus, the original parameters are refreshed. After that, the program will continually and repeatedly monitor whether there are parameters that need to be stored.

        3 Experiment and analysis

        3.1 Timing simulation and analysis

        To verify the design accuracy of IP core, function simulation is performed in Modelsim SE 6.5.

        First of all, dummy write operation is executed for initialization and the simulation waveforms are presented to write device address 10100000 and store address 00000000, as shown in Fig.3.Then IIC bus controller sends device address and read command, as shown in Fig.4. After reading the first data, the upper computer generates a response signal (ACK= “0”) , other four parameters and a stop signal. At the same time, the working parameters are refreshed, replacing initialization default parameters of the controller, as shown in Fig.5. SDA must be set in a high impedance state before the upper computer receives the response signal, otherwise the data bus will be in conflict and the upper computer can not receive the response signal from AT24C02C accurately.

        Fig.3 Simulation waveform of dummy write opration

        Fig.4 AT24C02C address and read

        With page write mode, the initialization and dummy write operation send each one byte data and AT24C02C generates a response signal(ACK=0) . Then the internal low address automatically increases 1 and the high level remains unchanged.Five working parameters are stored in AT24C02C sequentially and a stop signal is output by IIC bus controller finally. If the parameters need to be renewed, what can be done is to repeat the above operations and update the data in AT24C02C.

        After function simulation, the internal signals of FPGA are real-time read by using ChipScope Pro through joint test action group (JTAG) interface. The data read back by the computer is consistent with the working parameters, therefore, the system accuracy is high.

        Fig.5 Reading last parameter and stop signal

        3.2 IP core verification

        Fig.6 shows the overall structure of the storage test system based on FPGA. Fig.7 is a photo of designed test system. The system uses XC3S500E Chip from Xilinx company as the core control unit and AT24C02C from Atmel company to store parameters.

        Fig.6 Block diagram of test system

        Fig.7 Photo of test system

        Wireless storage test system mainly consists of sensors, signal conditioning circuit, analog-to-digital(A/D) conversion circuit, control circuit, storage circuit, Wi-Fi transmission circuit, universal serial bus (USB) communication circuit, as shown in Fig.6. The main working principle of the system is as follows: Based on rich logic units and input/output(I/O) ports of FPGA, the peripherals modules are controlled by FPGA orderly. The working parameters are automatically read and stored. At the same time, the system monitor information of Wi-Fi wireless module ceaselessly. When receiving the commands sent by the upper computer, the module executes the corresponding operations. If the working parameters need to be refreshed, the working parameters of the IIC bus controller will cover the storage space in AT24C02C.

        Meanwhile, A/D converter does not stop data acquisition and conversion. It compares the value set before trigger to avoid false trigger. Once successively 10 points are greater than the set value, the system is regarded as being triggered. Thus, the program begins to record the data and judge whether to achieve preset storage length. In the process of data acquisition, direct memory access(DMA) module is used to send data to SDRAM quickly and efficiently. After data acquisition, A/D converter is closed and the system enters low power consumption state to wait for the arrival of read command. When the upper computer in low power consumption state sends read command, the data in SDRAM is recovered by wireless module or USB interface.

        To verify the reliability of IP core, the blast tests were conducted. Before the test, the system parameters are set: magnification is two times, the sampling frequency is 2 MHz, negative delay length is 64 KB, trigger level is 1 270 mV, and data storage length is to 2 MB. The system collects and store actual blast wave signals, and the collected data is read by the upper computer through USB interface. The waveform is shown in Fig.8. The test result is close to the test standard, agreement and parameters. It indicates the reliability of the test system.

        Fig.8 Blast wave overpressure test result

        4 Conclusion

        The IP soft core for IIC bus controller is designed using FSM method based on FPGA, which is simple and modularized. IP soft core can greatly reduce the difficulty of system design and shorten development cycle. The storage test system for blast wave overpressure has the characteristics of high speed, miniaturization, low power consumption, high interference immunity and stability. The field test validates the accuracy and reliability of IP core.

        [1] YU Wei, XU Ning-yi, LUO Fei, et al. Design of an IIC bus controller IP core. World Science-Technology Research & Development, 2005, 27(1): 18-22.

        [2] MA Yun, SHI Xiu-hua, HE Tian-peng. Study on four servo control system on IIC Bus. Machinery & Electronics, 2012, 35(5): 35-39.

        [3] MAO Jian-hua, WEI Wei. Application of IIC bus master transmission and master rece ption mode. Journal of Xi’an University of Posts and Telecommunications, 2012, 18(3): 38-41.

        [4] XU Wei, LIU Jian-cheng. Simulation of volt-Age measurement system based on IIC bus. Journal of Nanjing University of Information Science & Technology, 2011, 3(1): 91-96.

        [5] HE Li-min. Application system design of IIC bus. Beijing: Beihang University press, 1995.

        [6] Chan D Y. The concept of IIC bus and its specification. Shanghai Philips Application Lab, 1992.

        [7] IIC speeificafion Version 2.1. Phillps Semiconductors,2000.

        [8] ZHANG Dong-dong. IIC bus communication interface device Implementation of CPLD. Application of Electronic Technique, 2002, 8(2): 79-80.

        [9] Short K L. VHDL for Engineers. Publishing House of Electronics Industry, 20119.

        [10] DONG Da-cheng, ZHANG Jian-dong, SHI Guo-qing. Design and realization of UART IP core design based on FPGA. Computer Measurement & Control, 2012, 20(8): 2251-2253.

        基于FPGA的IIC總線IP核設(shè)計(jì)

        黃曉敏, 張志杰

        (中北大學(xué) 儀器科學(xué)與動(dòng)態(tài)測試教育部重點(diǎn)實(shí)驗(yàn)室, 山西 太原 030051)

        采用FSM在FPGA上設(shè)計(jì)了IIC總線控制器。 系統(tǒng)上電后它可自動(dòng)從AT24C02C芯片中讀取數(shù)據(jù); 從上位機(jī)接收到新的數(shù)據(jù)后, 它也可自動(dòng)將其存儲(chǔ)到AT24C02C中。 該IIC總線控制器應(yīng)用于沖擊波超壓測試系統(tǒng)中, 可自動(dòng)讀取和保存重要工作參數(shù)。 在實(shí)驗(yàn)室環(huán)境下, IP核仿真準(zhǔn)確。 通過分析爆炸場試驗(yàn)中獲得的有效數(shù)據(jù), 可以看出該IP核具有很高的可靠性。

        FPGA; IIC總線; IP核; 測試系統(tǒng)

        HUANG Xiao-min, ZHANG Zhi-jie. Design of IP core for IIC bus controller based on FPGA . Journal of Measurement Science and Instrumentation, 2015, 6(1): 13-18.

        10.3969/j.issn.1674-8042.2015.01.003

        HUANG Xiao-min (937420530@qq.com)

        1674-8042(2015)01-0013-06 doi: 10.3969/j.issn.1674-8042.2015.01.003

        Received date: 2014-09-15

        CLD number: TP274 Document code: A

        猜你喜歡
        中北大學(xué)總線控制器
        《中北大學(xué)學(xué)報(bào)(社會(huì)科學(xué)版)》征稿啟事
        中北大學(xué)信創(chuàng)產(chǎn)業(yè)學(xué)院入選首批現(xiàn)代產(chǎn)業(yè)學(xué)院
        《中北大學(xué)學(xué)報(bào)(自然科學(xué)版)》征稿簡則
        有機(jī)相化學(xué)鍍鋁法制備Al/石墨烯復(fù)合材料粉末
        基于PCI Express總線的xHC與FPGA的直接通信
        機(jī)載飛控1553B總線轉(zhuǎn)以太網(wǎng)總線設(shè)計(jì)
        多通道ARINC429總線檢查儀
        模糊PID控制器設(shè)計(jì)及MATLAB仿真
        MOXA RTU控制器ioPAC 5542系列
        倍福 CX8091嵌入式控制器
        黄色国产一区二区99| 国产精品久久中文字幕第一页| 九九日本黄色精品视频| 按摩师玩弄少妇到高潮av| 中文字幕色av一区二区三区| 亚洲色偷拍区另类无码专区| 亚洲a人片在线观看网址| 亚洲六月丁香色婷婷综合久久| 欧美精品一区二区精品久久| a级毛片内射免费视频| av一区二区三区亚洲| 久久国产精品免费一区二区三区| 少妇被又大又粗又爽毛片久久黑人| 玩弄少妇高潮ⅹxxxyw| 欧美日韩亚洲一区二区精品| 亚洲av高清一区三区三区| 亚洲狠狠婷婷综合久久久久| 日本边添边摸边做边爱的网站| 甲状腺囊实性结节三级| 久久综合伊人有码一区中文字幕| 无码人妻精品一区二区三区夜夜嗨| 97午夜理论片在线影院| 国产在线高清无码不卡| 中文字幕一区二区综合| 中文字幕乱码亚洲精品一区| 国内精品一区视频在线播放| 国产一级一厂片内射视频播放| 亚洲精品久久久久一区二区| 国内揄拍国内精品人妻浪潮av| 亚洲AVAv电影AV天堂18禁| 69精品国产乱码久久久| 热久久国产欧美一区二区精品| 亚洲欧美欧美一区二区三区| 亚洲av午夜福利一区二区国产 | 夜夜嗨av一区二区三区| 国产精品va在线观看一| 水蜜桃在线精品视频网| 消息称老熟妇乱视频一区二区 | 猫咪av成人永久网站在线观看| 最新国产三级| 后入少妇免费在线观看|