代码搜索结果
找到约 10,000 项符合
EEPROM 的代码
readme.txt
该程序测试了通过I2C总线对<mark>EEPROM</mark>进行编程的过程。
程序先后向一个地址写入不同的值,并分别读出并验证(验证成功则点亮相应的通用LED)。程序正常运行后三个通用LED会全部点亮。
注意:运行程序前需要在IIC插槽上安装引脚定义与插座相对应的<mark>EEPROM</mark>芯片(编写该测试程序时使用的是AT24C16A)。
...
right_uv2.bak
### uVision2 Project, (C) Keil Software
### Do not modify !
Target (Target 1), 0x0000 // Tools: 'MCS-51'
Group (Source Group 1)
File 1,1, 0x0
File 1,1,
poweron_initial.c
#include
#define Byte unsigned char
#define clock_40ms (65536-40000)
Byte idata Ledcount,Outputstate,Dutycount,keydata;
//***************************initialcpu*************************
main.lis
.module main.c
.area text(rom, con, rel)
0000 .dbfile D:\AVR\我的程序\EEPROM读写实验/cfg.h
0000 .dbfunc e delay_ms _del
poweron_initial.c
#include
#define Byte unsigned char
#define clock_40ms (65536-40000)
Byte idata Ledcount,Outputstate,Dutycount,keydata;
//***************************initialcpu*************************
f_write.c
#include
#include "f_adi.h"
/*---------------------------------------------------------
---------------------------------------------------------*/
unsigned long flash_write (
con
macros.h
nsigned char *)0x70) /* m/m */
#define TWSR (*(volatile unsigned char *)0x71) /* m/m */
#define TWPS1 1
#define TWPS0 0
#define TWAR (*(volatile unsigned char *)0x72) /* m/m */
#define T
extern_vars.h
#ifndef EXTERN_VARS_H_INCLUDED
#define EXTERN_VARS_H_INCLUDED
//Systemweite externe Variablen
extern unsigned char eeprom_sck_period;
#endif
globe.h
unsigned char code JS121_PAL_BG[4]={0x00,0x56,0x70,0x09};
unsigned char code JS121_PAL_I[4]={0x00,0x56,0x70,0x0A};
unsigned char code JS121_PAL_DK[4]={0x00,0x56,0x70,0x0A};
unsigned char code J
main.c
//*----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*-------------------------------------------------