/***************************************************************** * 从方式的LPC932硬件I2C * 1 使用I2C总线软件包时P1.2,P1.3切勿写为0,并要设置为开漏输出。…
TWI总线 源代码
汇集 TWI总线 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/* Copyright (c) 2002, Marek Michalkiewicz Copyright (c) 2005, 2007 Joerg Wunsch All rights reserved. Redistribution…
#define TWI_WR 0xf0 #define TWI_RD 0x0f #define TWI_STOP 0 extern unsigned char TWI_STATE; //TWI状态定义 //MT 主方式传输 MR 主方式接收…
//TWI状态定义 //MT 主方式传输 MR 主方式接收 #define START 0x08 #define RE_START 0x10 #define MT_SLA_ACK 0x18 #define MT_SLA_NOACK 0x20 #d…
//TWI状态定义 //MT 主方式传输 MR 主方式接收 #define START 0x08 #define RE_START 0x10 #define MT_SLA_ACK 0x18 #define MT_SLA_NOACK 0x20 #d…
//TWI状态定义 //MT 主方式传输 MR 主方式接收 #define START 0x08 #define RE_START 0x10 #define MT_SLA_ACK 0x18 #define MT_SLA_NOACK 0x20 #d…
start Table of Contents
/******************************************* * I2C(TWI)操作函数 * * 文 件 名:TWI.h * * 函数功能:利用CPU的硬件TWI接口操作 * *…
//ICC-AVR application builder : 2007-1-9 15:50:41 // Target : M8 // Crystal: 8.0000Mhz #ifndef _TWI_H #define _TWI_H #define …
//ICC-AVR application builder : 2007-1-9 16:35:49 // Target : M8 // Crystal: 8.0000Mhz #include #include #include "twi.…