代码搜索结果
找到约 10,000 项符合
I2C 的代码
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
i2c.c
#include "i2c.h"
/*I2C总线初始化程序*/
/*延时函数*/
void delay(void)
{
;
}
/*停止信号函数*/
void I_stop(void)
{
SDA=0; delay( );
SCL=1; delay( );
SDA=1; delay( );
}
/*起始
i2c.c
#include "i2c.h"
/*I2C总线初始化程序*/
/*延时函数*/
void delay(void)
{
;
}
/*停止信号函数*/
void I_stop(void)
{
SDA=0; delay( );
SCL=1; delay( );
SDA=1; delay( );
}
/*起始
i2cbus.asm
FLAG EQU RLT ; I2C状态标志寄存器
ERCODE EQU RLTH ; 错误码备份
TXBUF EQU SOU ; 发送数据缓冲器
RXBUF EQU SOUH ; 接收数据缓冲器
BCOUNT EQU CNT
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
sysmoti2c.c
/* sysMotI2c.c - Low-Level Motorola Two-Wire I2C Routines */
/* Copyright 2000 Motorola, Inc., All Rights Reserved */
/*
modification history
--------------------
01g,17jan02,dtr Removing diab warn
makefile
#
# Makefile for the kernel i2c driver (Module).
#
WKDIR = /home/lxyc/s3c2410a/kernels/lxyc
CROSSDIR = /usr/local/arm/2.95.3
INSTALLDIR = /home/arm/driver-adc/driver
#$(WKDIR)/drivers
MODDEV = s3c2
makefile~
#
# Makefile for the kernel i2c driver (Module).
#
WKDIR = /home/lxyc/s3c2410a/kernels/lxyc
CROSSDIR = /usr/local/arm/2.95.3
INSTALLDIR = /home/arm/driver-adc/driver
#$(WKDIR)/drivers
MODDEV = s3c2
i2cbus.asm
FLAG EQU RLT ; I2C状态标志寄存器
ERCODE EQU RLTH ; 错误码备份
TXBUF EQU SOU ; 发送数据缓冲器
RXBUF EQU SOUH ; 接收数据缓冲器
BCOUNT EQU CNT
text.c
/********************************************************************************************
* 文 件 名:test.c
* 功 能:I2C总线实验(AT24C02读写实验)。
* 硬件条件:1.CPU型号:AT89S52
* 2.晶振:12.0000MHz
*