999精品在线视频,手机成人午夜在线视频,久久不卡国产精品无码,中日无码在线观看,成人av手机在线观看,日韩精品亚洲一区中文字幕,亚洲av无码人妻,四虎国产在线观看 ?

Design of IP core for IIC bus controller based on FPGA

2015-07-06 15:03:48HUANGXiaominZHANGZhijie
關鍵詞:實驗室系統

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核設計

黃曉敏, 張志杰

(中北大學 儀器科學與動態測試教育部重點實驗室, 山西 太原 030051)

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

FPGA; IIC總線; IP核; 測試系統

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


登錄APP查看全文

猜你喜歡
實驗室系統
Smartflower POP 一體式光伏系統
工業設計(2022年8期)2022-09-09 07:43:20
WJ-700無人機系統
ZC系列無人機遙感系統
北京測繪(2020年12期)2020-12-29 01:33:58
電競實驗室
電子競技(2020年4期)2020-07-13 09:18:06
電競實驗室
電子競技(2020年2期)2020-04-14 04:40:38
基于PowerPC+FPGA顯示系統
半沸制皂系統(下)
電競實驗室
電子競技(2019年22期)2019-03-07 05:17:26
電競實驗室
電子競技(2019年21期)2019-02-24 06:55:52
電競實驗室
電子競技(2019年20期)2019-02-24 06:55:35
主站蜘蛛池模板: 国产一级二级三级毛片| 97人人做人人爽香蕉精品| 国产精品yjizz视频网一二区| 亚洲日韩AV无码一区二区三区人| 97视频免费在线观看| 欧洲极品无码一区二区三区| 亚洲h视频在线| 精品国产毛片| 国产亚洲一区二区三区在线| 五月婷婷激情四射| 国产另类视频| 99在线视频精品| 国产成在线观看免费视频| 日韩专区第一页| 日本午夜视频在线观看| 久久免费精品琪琪| 国产在线视频二区| 亚洲无码高清一区| 怡红院美国分院一区二区| 亚洲熟女中文字幕男人总站| 色天堂无毒不卡| 激情国产精品一区| 精品少妇人妻无码久久| 伊人无码视屏| 午夜老司机永久免费看片| 亚洲精品成人片在线观看| 爆乳熟妇一区二区三区| 国产99视频在线| 福利一区在线| 一级毛片免费高清视频| 国产精品一区二区不卡的视频| 欧美成人午夜视频| 老熟妇喷水一区二区三区| 国产精品女熟高潮视频| 国产97色在线| 日韩欧美国产区| 日韩天堂在线观看| 亚洲综合色婷婷中文字幕| 国产乱人伦精品一区二区| 欧美性色综合网| 天天色综合4| 制服丝袜国产精品| 亚洲一区国色天香| 日韩美女福利视频| 国产在线观看精品| 国内精品久久人妻无码大片高| 亚洲高清日韩heyzo| 日韩黄色在线| …亚洲 欧洲 另类 春色| 一本大道东京热无码av| 无套av在线| 国产成人精品优优av| 午夜视频在线观看免费网站 | 99久久精品国产自免费| 国产福利在线免费观看| 国产欧美日韩综合在线第一| 在线观看国产精美视频| 国产一级α片| 爱做久久久久久| 亚洲高清在线天堂精品| 全午夜免费一级毛片| 国产综合亚洲欧洲区精品无码| 久久99精品久久久久纯品| 精品一区二区三区波多野结衣| 91在线精品麻豆欧美在线| 在线免费观看AV| 一级香蕉视频在线观看| 99热最新网址| 亚洲欧美日韩另类| 久久亚洲综合伊人| 欧美色丁香| 国产91丝袜| 国产99视频免费精品是看6| 日本精品视频一区二区| 久久久久免费精品国产| 日韩精品毛片人妻AV不卡| 亚洲有无码中文网| 一本久道久综合久久鬼色| 亚洲一区国色天香| 久久久久人妻一区精品| 国产91熟女高潮一区二区| 精品国产污污免费网站|