c8051f020 实时时钟模块程序 内含IIC模块程序/********************** SYSTEM CLOCK 8M********************************/ extern unsigned char xdata currenttime[16]={0} extern unsigned char xdata settime[16]={ 0x00, // control regesiter 1 0x00, // control regesiter 2 0x01, //current second 0x19, //current minute 0x20, //current hour 0x29, //current data 0x04, //current week 0x07, //current month 0x05, //current year 0x00, // alarm value reset 0x00, // alarm value reset 0x00, // alarm value reset 0x00, // alarm value reset 0x00, // clk out disable 0x00, // close timer 0x00, } /*********************************************************************/ extern void Current_Time ( void ) extern void Set_Time ( void )
标签: c8051f020 SYSTEM CLOCK IIC
上传时间: 2015-06-30
上传用户:edisonfather
/* * 读取INI文件的函数(C语言) * File: readinifile.h * Read INI File * char* GetInitKey(FileName, Section, Key) * Return Key=>Value * + [config] * + dbhost=localhost * * strcpy(dbhost,GetInitKey("config.ini", "config", "dbhost")) */
标签: File readinifile GetInitKey INI
上传时间: 2015-07-01
上传用户:李彦东
使用pso求最小化一函數 matlab程式碼,寫的非常簡潔(不到100行),且還包括了2維的圖形展示,和大家分享參考!!! 一起學習matlab和各種optimize methods 最小化:(x-15)^2+(y-20)^2 The swarm matrix is swarm(index, [location, velocity, best position, best value], [x, y components or the value component]) Author: Wesam ELSHAMY (wesamelshamy@yahoo.com) MSc Student, Electrical Enginering Dept., Faculty of Engineering Cairo University, Egypt
上传时间: 2013-12-18
上传用户:zhaiye
Title: STL Tutorial and Reference Guide: C++ Programming with the Standard Template Library (2nd Edition) Author: David R. Musser / Gillmer J. Derge / Atul Saini / Gilmer J. Derge Publisher: Addison-Wesley Page: 560 Edition: 2nd edition (March 27, 2001) Format: PDF Summary: The Standard Template Library was created as the first library of genetic algorithms and data structures, with four ideas in mind: generic programming, abstractness without loss of efficiency, the Von Neumann computation model, and value semantics. This guide provides a tutorial, a description of each element of the library, and sample applications. The expanded second edition includes new code examples and demonstrations of the use of STL in real-world C++ software development it reflects changes made to STL for the final ANSI/ISO C++ language standard.
标签: Programming Reference Standard Template
上传时间: 2014-01-19
上传用户:netwolf
问题描述: 一杯沸水冷却,圆柱体模型,底面半径0.05m,高0.1m,周围温度20度,初始水温100度 方程是四维输运方程(常数a^2=k/(c*p),k是热传导系数0.6006焦/(米*秒*度)) 初始条件:t=0时水等于100度 边界条件:1.上下壁都是自由冷却,第三类边界条件,周围温度保持在20度(H=k/h,h取1) 2.杯壁绝热,第二类边界条件 图形显示格式,取过圆柱轴的截面温度变化将其做成动画.
标签: 冷却
上传时间: 2014-01-22
上传用户:黑漆漆
用外积和法设计的权矩阵,不能保证p对模式全部正确的联想。若对记忆模式对加以限制(即要求p个记忆模式Xk是两两正交的),则用外积和法设计的BAM网具有较好的联想能力。 在难以保证要识别的样本(或记忆模式)是正交的情况下,如何求权矩阵,并保证具有较好的联想能力?这个问题在用BAM网络实现对字符的识别程序仿真中得到体现。我们做过尝试,用伪逆法求权矩阵,虽然能对未加干扰的字符全部进行识别,但对加有噪声的字符识别效果很差。至于采用改变结构和其他算法的方法来求权矩阵,将是下一步要做的工作。
标签: 矩阵
上传时间: 2015-07-04
上传用户:ikemada
本书第一部分讲述的是传统的网络接口N e t B I O S、重定向器以及通过重定向器进行的各类 网络通信。尽管本书大部分内容均围绕Wi n s o c k编程这一主题展开,但是, A P I比起Wi n s o c k 来,仍然具有某些独到之处
上传时间: 2015-07-08
上传用户:恋天使569
利用“原始套接字”(Raw Socket),我们可访问位于基层的传输协议。本章专门讲解如 何运用这种原始套接字,来模拟I P的一些实用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原 始套接字,亦可对I P头信息进行实际的操作。本章只关心I P协议;至于如何针对其他协议使 用原始套接字,我们不打算提及。而且,大多数协议(除AT M以外)根本就不支持原始套接 字。所有原始套接字都是使用S O C K _ R AW这个套接字类型来创建的,而且目前只有Wi n s o c k 2提供了对它的支持。因此,无论Microsoft Windows CE 还是老版本的Windows 95 (无 Winsock 2升级)均不能利用原始套接字的能力。
上传时间: 2015-07-08
上传用户:时代电子小智
Winsock 2服务提供者接口( Service Provider Interface, SPI)代表着另一端的Wi n s o c k编 程(和Winsock 2API相对应)。Wi n s o c k的一端是A P I,另一端则是S P I。
标签: Winsock Interface Provider Service
上传时间: 2015-07-08
上传用户:yoleeson
迄今为止,本书已介绍了可在Microsoft Wi n d o w s操作系统中使用的全部网络A P I函数。 利用这些函数,我们的应用程序可通过网络,建立与其他程序的通信联系。在那些讨论中, 我们在很大程度上将重点放在七层O S I模型的应用层和表示层上面
标签:
上传时间: 2015-07-08
上传用户:royzhangsz