登录
首页 » 嵌入式系统 » PIC16F877A 24C02读写

PIC16F877A 24C02读写

于 2022-03-18 发布 文件大小:23.33 kB
0 222
下载积分: 2 下载次数: 1

代码说明:

资源描述 /*************************************************************************** * 文件名:24c02 * 功  能:利用IIC总线对eeprom 24c02,进行读写 * 作  者:TXMCU * 日  期: * 备  注: //软件思路:当按键KEY0按下时,把6个连续的数据写入到6个连续的单元内, //写完成后数码管显示单个0,做为完成标志位,当按键KEY1按下后, //读取EEPROM连续六个单元,读取结果送6位数码管显示 //           //开发板连接方法:将JP10 JP11 JP12 JP13这4个跳线帽分别接到24C02位置 // 把JP8的的跳线帽跳到DPY位置上,JP14选择在IO口位置上 ****************************************************************************/ #include __CONFIG(0x1832); //芯片配置字,看门狗关,上电延时开,掉电检测关,低压编程关,加密,4M晶体HS振荡 #define address  0xa #define nop() asm("asm") //定义待写入的数据 const char ee_data_write[] = {0, 4, 2, 3, 3, 1}; //定义读取数据存放的缓冲区 unsigned char ee_date[6]; //定义0-9的显示代码

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 介绍如何使用UCDOS的HZK16 点阵字库,对于想在LCD上显示汉字的看一下就明白了。...
    介绍如何使用UCDOS的HZK16 点阵字库,对于想在LCD上显示汉字的看一下就明白了。-UCDOS how to use the library HZK16 lattice, the LCD to show the Chinese characters look at it to understand.
    2022-01-25 21:08:27下载
    积分:1
  • 这个程序描述的是SPI的数据传送,包括应用SPI进行接收和发送...
    这个程序描述的是SPI的数据传送,包括应用SPI进行接收和发送-This procedure is described in the SPI data transfer, including the application of SPI to receive and send
    2022-09-30 12:25:03下载
    积分:1
  • 44b0开发板试验代码ucos实验MP3.rar
    44b0开发板试验代码ucos实验MP3.rar-Development board 44b0 experimental test code uCOS MP3.rar
    2022-10-10 10:05:04下载
    积分:1
  • sd卡的高速读写程序,sd模(4数据线),是普通spi模的约6倍,以及完全的sd卡的data sheet...
    sd卡的高速读写程序,sd模式(4数据线),是普通spi模式的约6倍,以及完全的sd卡的data sheet-sd-card reader procedures, sd model (four data lines), is the general pattern of about 20 six times. and full sd card data sheet
    2023-02-22 13:15:03下载
    积分:1
  • msp430 串口模拟程序
    msp430 串口模拟程序-Serial Controller Simulation Program
    2023-02-20 22:45:03下载
    积分:1
  • 触摸屏控制器ADS7846的原理及应用
    触摸屏控制器ADS7846的原理及应用--Theory and application of touch-screen controller ADS7846.
    2022-11-12 18:55:03下载
    积分:1
  • 这个程序是自由软件,你可以重新分配它和/或修改它在…
    This program is free software you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.--This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    2022-03-23 08:29:11下载
    积分:1
  • Embest STM 应用程序库
    嵌入式图形对象/触摸屏库 STM: 应用程序库 这个图书馆是固件包,其中包含一个例程、 数据结构和宏覆盖图形库的主要特点和支持 HID 设备进行交互的图形对象 (触摸屏、 操纵杆和按钮) 的集合。 图书馆是一般用途,可以在任何的 CPU 8/16/32 位,以保证最高的可移植性的任何建筑或液晶显示控制器上执行,它提供了一个图形用户界面 (GUI) 用于任何应用程序的运作与图形液晶显示器。
    2022-12-19 19:00:08下载
    积分:1
  • ATMEL的手臂at91sam
    适用于at91sam9260ek编程。初始化USB端口主机或设备接口将有助于配置和存储SDRAM或compact flash或NAND flash
    2022-02-12 22:43:23下载
    积分:1
  • 十进制BCD码转换算法
    10进制to BCD转换算法-Decimal to BCD conversion algorithm
    2022-01-26 03:52:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载