代码搜索结果
找到约 10,000 项符合
C 的代码
at24c02测试程序.c
/************************************************
AT24C02测试程序,向其中一个地址(0x66)写数据(0x06),然后读取
数码管中显示出来
****************************************************/
#include
#include
run.asl
+ 1 ;****************************************************************;
+ 2 ; Set Rules
+ 3 ;
+ 4 ; Function: set some
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
mas.c
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* S
main.sym
00000000 W __heap_end
00000000 a __tmp_reg__
00000000 W __vector_default
00000000 T __vectors
00000001 a __zero_reg__
0000003d a __SP_L__
0000003e a __SP_H__
0000003f a __SREG__
0000008c T __c
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
hardware.h
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
// write your header here
//========================================================================================
// Progarm: The file be included by
24c64.h
//------------------------------------------------------------------------------
//24C64.H
//------------------------------------------------------------------------------
#ifndef __24C64_H__
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
blinky.c
/******************************************************************************/
/* BLINKY.C: LED Flasher */
/***********************************