摘要: MD5值计算 阅读全文
posted @ 2012-06-30 21:15 璇星 阅读(243) 评论(0) 推荐(0) 编辑
摘要: /*串口基础类库(WIN32) ver 0.1 编译器 : BC++ 5; C++ BUILDER 4, 5, 6, X; VC++ 5, 6; VC.NET; GCC;class _base_com : 虚基类 基本串口接口;class _sync_com : 同步I/O 串口类;class _asyn_com : 异步I/O 串口类;class _thread_com : 异步I/O 辅助读监视线程 可转发窗口消息 串口类(可继承虚函数on_receive用于读操作);class _com : _thread_com 同名copyright(c) 2004.8... 阅读全文
posted @ 2012-06-14 20:15 璇星 阅读(2592) 评论(0) 推荐(0) 编辑
摘要: /*** FILENAME CSerialPort.h**** PURPOSE This class can read, write and watch one serial port.** It sends messages to its owner when something happends on the port** The class creates a thread for reading and writing so the... 阅读全文
posted @ 2012-06-12 21:01 璇星 阅读(7871) 评论(2) 推荐(2) 编辑
摘要: 精确的时间计量方法在某些应用程序中是非常重要的。常用的 Windows API 方法 GetTickCount() 返回系统启动后经过的毫秒数。另一方面,GetTickCount() 函数仅有 1ms 的分辨精度,很不精确。 故而,我们要另外寻找一种方法来精确测量时间。 阅读全文
posted @ 2012-05-24 20:37 璇星 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 写了一个打开CCS就自动加载GEL初始化文件,自动加载工程文件。编译后自动读取out文件并restart,GoMain的gel文件/* * Copyright 1998 by Texas Instruments Incorporated. * All rights reserved. Property of Texas Instruments Incorporated. * Restricted rights to use, duplicate or disclose this code are * granted through contract. *//* * ======== ... 阅读全文
posted @ 2012-05-20 23:12 璇星 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 CCS 3.32. 点击Setup CCStudio v3.3 添加仿真器 3. 导入TMSC6726B 的软件仿真器 4. 打开CCS 3.3。新建Project 5. 新建Test1工程6. 新建源文件,并保存文件名test1.c#include <stdio.h>void main(){ int a=0; while(1) { a++; }} 7. 添加test1.c至工程。8. 添加库文件 C:\CCStudio_v3.3\C6000\cgtools\lib\rts6700.lib9. 拷贝了一个CMD... 阅读全文
posted @ 2012-05-20 20:17 璇星 阅读(463) 评论(0) 推荐(0) 编辑
摘要: For just merging the headercell 阅读全文
posted @ 2012-05-06 21:53 璇星 阅读(5989) 评论(0) 推荐(0) 编辑
摘要: A .NET library for generating Word documents (.DOC) using the RTF (Rich Text Format) specification. 利用RTF格式生成word文档的.Net库 阅读全文
posted @ 2012-04-23 21:42 璇星 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 有时,对串口供电需要设置DtrEnable 和RtsEnable 两个属在开发中有些串口设备需要串口供电,使用C#中的SerialPort类默认情况下不会出发 DataReceived函数,但使用超级终端却可以接收到数据,这是因为 SerialPort 类的DtrEnable 和RtsEnable 两个属性默认是false,设为true即可接收数据了,如下: this.m_SerialPort.DtrEnable = true; //启用控制终端就续信号 this.m_SerialPort.RtsEnable = true; //启用请求发送信号 阅读全文
posted @ 2012-04-17 20:33 璇星 阅读(446) 评论(0) 推荐(1) 编辑
摘要: C#操作Excel的类,还需要进一步整理 阅读全文
posted @ 2012-04-13 23:53 璇星 阅读(446) 评论(0) 推荐(0) 编辑