//ICC-AVR application builder : 2007-1-9 16:35:49 // Target : M8 // Crystal: 8.0000Mhz #include #include #include "twi.…
TWI 源代码
TWI(Tungsten Inert Gas Welding),即钨极惰性气体保护焊,是一种广泛应用于精密电子、航空航天及汽车制造等领域的焊接技术。它以高精度、低热输入和良好的焊接质量著称,特别适合于薄板材料与复杂结构件的连接。通过掌握TWI技术,工程师们不仅能提升自身技能水平,…
#ifndef __TWI_H__ #define __TWI_H__ #ifndef F_CPU #define F_CPU 7372800 //晶振,注意有可能CONFIG.H里面已经定义的情况 #endif #define TWI_M…
// 作者:古欣 // AVR与虚拟仪器 http://www.avrvi.com #include "config.h" //TWI master initialize // bit rate:100 void twi_master_init(…
#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…
/********************************************************************************************************* ** …
/********************************************************************************************************* ** TWI…
// This is a headfile for twi communication #include #include #include #include #define num 4 //Interrupt 中断入口地址 #prag…
// This is a headfile for twi communication #include #include #include #include #define num 4 //Interrupt 中断入口地址 #prag…
/*函数的使用说明: 1.该twi模块包含四种工作模式,主发,主收,从收,从发,其中主发由 twiWriteByte(从机地址,要发送的数据)实现,主收由twiReadByte(从机地址)实现,从机 的发送与接收均通过中断实现 2.在从机模式下…