代码搜索结果
找到约 10,000 项符合
I2C 的代码
i2c-stub
MODULE: i2c-stub
DESCRIPTION:
This module is a very simple fake I2C/SMBus driver. It implements four
types of SMBus commands: write quick, (r/w) byte, (r/w) byte data, and
(r/w) word data.
No hard
24c01.asm
;*************************** 24c01器件子程序 **************************
;I2C总线EEPROM
;使用了: ACC,R0,R1,R2,R3
;************ 公共变量定义 ****************
PUBLIC READ_ABYTE, WRITE_ABYTE
;******
coregen.log
# Xilinx CORE Generator 6.1i
# User = 刘韬
Initializing default project...
Loading plug-ins...
All runtime messages will be recorded in E:\刘韬\MY_WORK\FPGA\程序\I2C\coregen.log
# busformat=BusFormatAn
coregen.log
# Xilinx CORE Generator 6.1i
# User = 刘韬
Initializing default project...
Loading plug-ins...
All runtime messages will be recorded in E:\刘韬\MY_WORK\FPGA\程序\I2C\coregen.log
# busformat=BusFormatAn
tst_ds1621.vhd
--
--
-- State machine for reading data from Dallas 1621
--
-- Testsystem for i2c controller
--
--
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use work.i2c.all;
entity D
p_sensor.plg
Build target 'Target 1'
compiling PSensor.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?I2C_INIT?I2C
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR O
delaykeydcmoter.plg
Build target 'Target 1'
compiling DELAY_DCMOTER.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?I2C_INIT?I2C
*** WARNING L16: UNCALLED SEGMENT, IGNORED
i2c_s.c
#include
/* 主器件函数库 */
/*******************************************
设置总线函数
用于设置I2C控制寄存器,包括总线时钟,速率及从地址.不接受广播地址
********************************************/
void setbus(uns
coregen.log
# Xilinx CORE Generator 6.1i
# User = 刘韬
Initializing default project...
Loading plug-ins...
All runtime messages will be recorded in E:\刘韬\MY_WORK\FPGA\程序\I2C\coregen.log
# busformat=BusFormatAn
eeprom.h
#ifndef __EEPROM_H
#define __EEPROM_H
/*
** [file]
** eeprom.h
** [purpose]
** conatins the definitions for the Michrchip MCP24LC256 I2C EEPROM
*/
#define MCP24LC256_FIXED_ADDRESS 0xa0
in