-
PIC16F877A 24C02读写
资源描述
/***************************************************************************
* 文件名: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的显示代码
- 2022-03-18 07:32:17下载
- 积分:1
-
YC2440 开发板使用说明 下载后直接重名为PDF扩展即可
YC2440 开发板使用说明 下载后直接重名为PDF扩展即可-YC2440 development board for use directly after downloading the expansion can be re-named PDF
- 2022-05-05 10:31:56下载
- 积分:1
-
一个主窗口代输入法的例子, 主窗口用模板的方法建立!!
一个主窗口代输入法的例子, 主窗口用模板的方法建立!! -A main window input method on behalf of the examples, the main window using the template method! !
- 2023-03-21 19:50:03下载
- 积分:1
-
工业用控制器源程序.
工业用控制器源程序.-industrial controller source.
- 2022-01-25 21:39:19下载
- 积分:1
-
针对ARM优化过的FFT算法。其中20点,64点,80点的FFT算法。笔者试着加入了256点的FFT...
针对ARM优化过的FFT算法。其中20点,64点,80点的FFT算法。笔者试着加入了256点的FFT
-for ARM optimized FFT algorithm off. 20 points, 64 points, 80 points of the FFT algorithm. I tried to join the 256-point FFT
- 2022-06-15 23:57:37下载
- 积分:1
-
C89c51 usb driver, realizing the usb serial transfer function provides a virtual...
C89c51 usb驱动程序,实现了usb转串口的功能,提供了一个虚拟的串口-C89c51 usb driver, realizing the usb serial transfer function provides a virtual serial port
- 2022-02-10 08:03:30下载
- 积分:1
-
blackfin 533 code is the basis of tft
blackfin 533 的tft代码 很基础-blackfin 533 code is the basis of tft
- 2022-03-29 02:37:40下载
- 积分:1
-
AVR驱动7219程序,能有效将AVR的速度与资源有效利用。程序简洁,流畅,浅显易懂。...
AVR驱动7219程序,能有效将AVR的速度与资源有效利用。程序简洁,流畅,浅显易懂。-AVR-driven 7219 procedures, can effectively AVR speed and efficient use of resources. Process simple, smooth, easy to understand.
- 2022-09-26 14:20:03下载
- 积分:1
-
对传感器MPU6050进行调试设置参数(硬件IIC)
#include "stm32f10x.h"#include "I2C_MPU6050.h"#include "usart1.h"#include "delay.h"int main(void){ InitMPU6050();/***********************************************************************/while(1){printf("
---------------%d
",GetData(ACCEL_XOUT_H));printf("
----------------%d
",GetData(ACCEL_YOUT_H)); printf("
------------------%d
",GetData(ACCEL_ZOUT_H)); printf("
---------------%d
",GetData(GYRO_XOUT_H)); printf("
-----------------%d
",GetData(GYRO_YOUT_H)); printf("
---------Ã---------%d
",GetData(GYRO_ZOUT_H));delay_ms(500);} }/******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/
- 2022-01-28 09:30:30下载
- 积分:1
-
"Port ucosii V252"是嵌入式操作系统uC/OS
"Port ucosii V252"是嵌入式操作系统uC/OS-II在DP256/DG128上移植的范例。提供的codeworrior编程范例,旨在通过给出的范例使用户对codeworrior的使用有所了解。--"Port ucosii V252" is a typical migration example of embedded os uC/OS-II to DP256/DG128. The code is compiled in codewarrior.
- 2022-04-22 09:11:51下载
- 积分:1