登录
首页 » c » 51单片机时钟

51单片机时钟

于 2022-07-13 发布 文件大小:33.50 kB
0 77
下载积分: 2 下载次数: 1

代码说明:

使用51单片机,在8位led数码管显示小时,分钟,秒。

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

发表评论

0 个回复

  • ATT7022
    att7022的源程序简洁易懂,实际操作成功(att7022 the source code simple to understand, the actual operation is successful)
    2021-01-29 17:08:35下载
    积分:1
  • FCBF 功能选择代码
    基于相关性的快速筛选器 FCBF 若要选择功能子集和它的任何给定的大小选择功能中 FCBF 的顺序不同。 FCBF (Fast Correlation-Based 筛选器) 算法包括两个阶段: 第一,是相关性分析、
    2022-01-24 13:24:24下载
    积分:1
  • jiediandingwei
    包括RSSI与距离模型转换,以及三边定位,高斯滤波(Including RSSI and distance model conversion, as well as trilateral positioning, Gaussian)
    2016-05-23 20:53:38下载
    积分:1
  • MFC_OpenCV_Image
    采用MFC和OpenCV编程的简单小程序,可以打开多种图象文件(Programming using MFC and OpenCV simple small program, you can open multiple image files)
    2009-04-30 13:56:31下载
    积分:1
  • 4538
    wpf经典源码,120例,详细的wpf源码,以及教程,超详细的!!(wpf classic source, 120 cases, the detailed wpf source code, as well as tutorial, ultra-detailed! !)
    2013-01-16 15:44:14下载
    积分:1
  • 条码测试,条码打印,支持多种打印机,zebra
    条码测试,条码打印,支持多种打印机,zebra-Barcode test, barcode printing, supports a wide range of printers, zebra
    2022-09-11 21:00:02下载
    积分:1
  • c# 扫描IP Http Header
    c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
    2014-06-23下载
    积分:1
  • 三相三线制20kw光伏并网逆变器程序
    20Kw的大功率并网逆变器,丰富的源程序,经过量产的成熟产品,直接就可以使用。(20Kw high-power grid-connected inverter, a wealth of source, after mass production of mature products, you can directly use.)
    2017-07-18 14:19:40下载
    积分:1
  • 19.PWM直流电机仿真实验
    使用protuce对直流电机进行仿真,仿真程序在压缩文件里(Using protuce to simulate DC moto)
    2020-06-25 20:40:01下载
    积分:1
  • dwt2
    本文提出了一种基于独立分量分析的音频数字水印方法。嵌入水印时,对原始音频文件进行一级小波分解,在分解 得到的逼近分量中利用随机混合方法嵌入水印后进行小波逆变换形成嵌入水印的音频文件。仿真实验结果表明这种方 法的强鲁棒性和可行性。(Abstract:Audio p roduction is one of the important digital multimedias, which transmit becomes more and more convenient. To p revent the multimedia content from being stolen or illegally used, audio content p rotection techniques become increasingly impor2 tant so that the potential of these app lications can be reached. As the importantmethod of copyright p rotection, the digitalwater2 marking technology has been acquired widely recognition and research. This paper p resents a method of digital audio watermark2 ing based on independent component analysis. When embedding watermarking, the original audio is decomposed by single2level discrete 12D wavelet transform, watermarking is embedded by mixing randomly to the app roximation coefficient vector obtained, and the audio is single2level reconstructed receiving audio havingwatermarking. Emulated experiment results show that thismeth2 od is robust and feasible.)
    2009-06-04 17:43:21下载
    积分:1
  • 696518资源总数
  • 105563会员总数
  • 11今日下载