1. 首页
  2. 课程学习
  3. 嵌入式
  4. 实现I2C总线控制器的VHDL源代码

实现I2C总线控制器的VHDL源代码

上传者: 2023-02-08 19:24:40上传 ZIP文件 2.152 MB 热度 13次

I2C总线控制器 altera提供

The I2C Controller was designed for the MC68307 uC, provides a simplified interface to industry-standard I2C protocol. The I2C Controller is available in VHDL and is opTImized for the Altera® APEX™, StraTIx®, and Cyclone™ device families.

All of the register addresses are defined as constants in the VHDL source files and can be easily customized for customer use. The MBASE address is defined as a generic and can also be easily changed and customized for customer use. In addiTIon, this design outputs the MCF signal on a pin which can be used by the uC as a quick indicaTIon that the I2C transfer is complete.

This design uses the I2C SCL signal as a clock. This requires that the SCL signal have clean, fast edges on both the rising and falling edges of this signal. Slow rise and fall times on this signal can show noise effects which can cause improper clocking of registers within the Stratix FPGA. If the loading of the SCL signal in the system is such that the rise and fall times are slow (>20nS), external buffers such as Schmitt Triggers will be required to interface to the FPGA.

下载地址
用户评论