TWI总线 源代码

汇集 TWI总线 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。

收录资源 500 份 全站深度检索
源码文件

#include "config.h" //TWI master initialize // bit rate:100 void twi_master_init(void) { TWCR= 0x00; //disable twi TWBR=…

源码文件

#ifndef __TWI_H__ #define __TWI_H__ #ifndef F_CPU #define F_CPU 7372800 //晶振,注意有可能CONFIG.H里面已经定义的情况 #endif #define TWI…

源码文件

#include "config.h" volatile uint8 main_tmp=0; //extern volatile uint8 main_tmp=0; //TWI master initialize // bit rate:100…

源码文件

//----------------------------------------------------------- //程序由AVR辅助开发工具V2.0.0自动生成 //MCU系统的处理器为: ATMega16 //MCU系统的晶…

源码文件

#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…

源码文件

#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…