//ICC-AVR application builder : 2007-1-9 16:35:49 // Target : M8 // Crystal: 8.0000Mhz #include #include #include "twi.…
TWI总线 源代码
汇集 TWI总线 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/************************************************ 文件:TWI.c 用途:TWI操作函数 注意: 创建:2008.1.26 修改:2008.1.26 Copy Right (c) www.avr…
/************************************************ 文件:TWI.h 用途:TWI头文件 注意: 创建:2008.1.26 修改:2008.1.26 Copy Right (c) www.avrv…
/************************************************ 文件:TWI.c 用途:TWI操作函数 注意: 创建:2008.1.26 修改:2008.1.26 Copy Right (c) www.avr…
/************************************************ 文件:TWI.h 用途:TWI头文件 注意: 创建:2008.1.26 修改:2008.1.26 Copy Right (c) www.avrv…
#include #include #include #include "TWI.h" #define uchar unsigned char #define uint unsigned int #define Page_size 8 …
#ifndef _TWI_H_ #define _TWI_H_ /*******主状态定义*******/ #define START 0X08 #define TWI_REP_START 0X10 #define TWI_ARB_LO…
#include #include #include #include "TWI.h" #define uchar unsigned char #define uint unsigned int #define Page_size 8 …
//TWI状态定义 //MT 主方式传输 MR 主方式接收 #define START 0x08 #define RE_START 0x10 #define MT_SLA_ACK 0x18 #define MT_SLA_NOACK 0x20 #d…
#ifndef __TWI_H__ #define __TWI_H__ #ifndef F_CPU #define F_CPU 7372800 //晶振,注意有可能CONFIG.H里面已经定义的情况 #endif #define TWI_M…