-
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
-
PCI总线的驱动程序
PCI总线的驱动程序-PCI Bus Driver
- 2022-01-30 23:16:28下载
- 积分:1
-
DE2 练习源码2-1
Part I
We wish to display on the 7-segment displays HEX3 to HEX0 the values set by the switches SW15−0. Let the
values denoted by SW15−12, SW11−8, SW7−4 and SW3−0 be displayed on HEX3, HEX2, HEX1 and HEX0,
respectively. Your circuit should be able to display the digits from 0 to 9, and should treat the valuations 1010 to
1111 as don’t-cares.
1. Create a new project which will be used to implement the desired circuit on the Altera DE2 board. The
intent of this exercise is to manually derive the logic functions needed for the 7-segment displays. You
should use only simple VHDL assignment statements in your code and specify e
- 2022-03-23 22:31:42下载
- 积分:1
-
简要介绍了包含更详细的文件的库,为我。
介绍linux 上的c函数库,里面比较详细介绍了函数库文件,对于linux编程来说很好-briefed on the c library containing more detailed document of the library, for instance good linux programming
- 2023-01-10 01:40:12下载
- 积分:1
-
Nucleus集成开发环境测试版,内含Nucleus操作系统,可进行开发试验...
Nucleus集成开发环境测试版,内含Nucleus操作系统,可进行开发试验 -Nucleus integrated development environment test version containing the Nucleus operating system, the development and testing can be conducted
- 2023-01-14 14:30:04下载
- 积分:1
-
是基于MSP430F449的温度报警的c程序
是基于MSP430F449的温度报警的c程序--A C program to alarm based on the temperature of MSP430F449.
- 2022-02-13 12:51:29下载
- 积分:1
-
avr与上位机开发
本文附带一份小项目的源代码,它超越了串口助手,给人一种耳目一新的感觉。亮点如下:
1. 它解决了串口关闭时出现线程出现死锁,软件关闭后,进程在后台没有关闭问题(所谓的线程死锁),可以直接用到开发的项目上。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-13 15:41:07下载
- 积分:1
-
nOKİ A 6100 lcd SAMPLE CODE
nOKİ A 6100 lcd SAMPLE CODE
- 2022-03-23 08:02:51下载
- 积分:1
-
Software Project Survival Guide
Software Project Survival Guide
- 2022-04-11 19:56:24下载
- 积分:1
-
在嵌入式系统中对Lattice CPLD软件升级时所需的VME文件生成所需源代码。基于E2PROM存储...
在嵌入式系统中对Lattice CPLD软件升级时所需的VME文件生成所需源代码。基于E2PROM存储- Generate the VME file required for updating Lattice CPLD in embedded systems. It is based on E2PROM.
- 2022-10-24 02:25:03下载
- 积分:1