代码搜索结果
找到约 10,000 项符合
I2C 的代码
i2c应用程序2.txt
;****************************************************************************
; This source code provides a demonstration of the MSSP peripheral
; on the PIC16F87x MCU.
;*********** The subroutine
i2c应用程序1.txt
; File: an734.asm
; data: feb.23.2001
; Written By: 歌林电子制作实验室www.nbglin.com
; Functionality:
;
; This code implements the basic functions for an I2C slave device
; using the SSP module. All
i2c应用程序2.txt
;*
mcu realize i2c bus communication.txt
#ifndef _I2C_H // 防止I2C.h被重复引用
#define _I2C_H
#include // 引用标准库的头文件
#include
#define uchar unsigned char
#define uint unsigned int
sbit SDA = P1^0; //
tw9910 i2c initial.c
void I2CStart(void)
{
I2CON=I2CRestart; //启动I2C总线
while(SI==0); //启动中...... 启动完毕SI=1
}
void I2CSend(unsigned char send)
{
I2DAT=send; //待发送数据装入I2DAT
I2CON=I2CBus_ACK; //清除SI准备
i2c应用程序1.txt
; File: an734.asm
; data: feb.23.2001
; Written By: 歌林电子制作实验室www.nbglin.com
; Functionality:
;
; This code implements the basic functions for an I2C slave device
; using the SSP module. All
i2c应用程序2.txt
;*