-
ds1302+1602shizh0ng.含闹钟
#include //包含单片机寄存器的头文件
#include //包含_nop_()函数定义的头文件
unsigned char code digit[10]={"0123456789"}; //定义字符数组显示数字
sbit SCLK=P2^5; //位定义1302芯片的接口,时钟输出端口定义在P1.0引脚
sbit DATA=P2^6; //位定义1302芯片的接口,数据输出端定义在P1.1引脚 I/O
sbit RST=P2^7; //位定义1302芯片的接口,复位端口定义在P1.2引脚 CE
sbit s1=P1^0; // 时间移位
sbit s2=P1^1; // 时间加
sbit s3=P1^2; //时间减
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-01 14:54:39下载
- 积分:1
-
pic16f883 电压计
pic16f883 7 电压计项目
- 2022-11-06 02:00:04下载
- 积分:1
-
这是一段控制步进电机转动的代码。希望对搞电机的同行有所帮助。驱动芯片是297+298...
这是一段控制步进电机转动的代码。希望对搞电机的同行有所帮助。驱动芯片是297+298-this is a code for controlling the step motor.
- 2022-01-28 08:40:22下载
- 积分:1
-
uboot 移植到 arm 9 2440的开发板 已带好DM9
uboot 移植到 arm 9 2440的开发板 已带好DM9-uboot transplanted to the arm 9 2440 development board has been to bring good DM9
- 2023-06-25 23:15:04下载
- 积分:1
-
2410TK test code, including the IIC, IIS, RTC, Flash, IrDA, LCD and other parts...
2410TK测试代码,包括IIC,IIS,RTC,Flash,IrDA,LCD等部分-2410TK test code, including the IIC, IIS, RTC, Flash, IrDA, LCD and other parts of
- 2022-07-10 10:01:12下载
- 积分:1
-
nios总线与现场总线can的总线桥接口IP程序
nios总线与现场总线can的总线桥接口IP程序-Nios Fieldbus bus and the bus bridge can interface IP procedures
- 2022-11-03 16:45:03下载
- 积分:1
-
at45d041a读写程序模块
at45d041a读写程序模块-at45d041a read and write program model
- 2022-11-04 23:30:03下载
- 积分:1
-
指南描述了一种低组SPI协议的软件实现
指南描述了一组用于SPI协议软件实现的低级程序,在主模式中所有的通信都来自AVR-guide describes a group SPI protocol software for the realization of the low-level procedures, the main mode of communication are all from the AVR
- 2022-12-26 09:55:03下载
- 积分:1
-
单片机实现语音录放,对广大初学者,比较实用
单片机实现语音录放,对广大初学者,比较实用-the soft sound record and play in mcu
- 2022-07-16 19:46:33下载
- 积分:1
-
SMARTARM2200开发板改版后的新液晶模块驱动,C语言编写。
SMARTARM2200开发板改版后的新液晶模块驱动,C语言编写。-SMARTARM2200 Development Board revised the new LCD module driver, C language.
- 2022-10-27 14:10:04下载
- 积分:1