<?xml version="1.0" encoding="gb2312"?><rss version="2.0"><channel><title>bpesun的博客</title><link></link><description></description><language>zh-cn</language><generator>Goodspeed Rss</generator><ttl>20</ttl><pubDate>Thu, 24 Jul 2008 17:44:29 GMT</pubDate><category></category><copyright></copyright><docs></docs><item><title>编程规则</title><pubDate>Tue, 22 Jul 2008 17:38:41 GMT</pubDate><link>http://blog.ednchina.com/bpesun/137440/message.aspx</link><description>函数变量定义数据的传递尽量通过函数的参数来实现，函数前面的函数返回值类型最好是表示函数执行的状态。比如：我们通过串口接收一个字节数据，我们可以定义函数如下：BOOL xSmsPortSerialGetByte( CHAR * pucByte ) { *pucByte = UDR; return TR</description><comments></comments><guid>http://blog.ednchina.com/bpesun/137440/message.aspx</guid><category></category><author>bpesun</author></item><item><title>以后一定注意不能忽略编译器的警告</title><pubDate>Sun, 13 Jul 2008 22:54:25 GMT</pubDate><link>http://blog.ednchina.com/bpesun/134131/message.aspx</link><description>1，为什么容易忽略编译器的警告信息？ 1）编程时处理各种error已经很让人恼火的了，error自然被放在次要位置； 2）绝大多数下，程序在存在warnings的情况下，在短期内可以正常运行，我们根本看不到错误，导致warning近一步被轻视； 3）没有养成好的工作习惯，带有warning的代码是不</description><comments></comments><guid>http://blog.ednchina.com/bpesun/134131/message.aspx</guid><category></category><author>bpesun</author></item><item><title>引用没有声明的外部函数可能会导致严重问题</title><pubDate>Tue, 17 Jun 2008 17:56:05 GMT</pubDate><link>http://blog.ednchina.com/bpesun/125648/message.aspx</link><description>using a function without a valid prototype is VERY dangeours. 在一个函数中调用另外一个文件中定义的函数，但是这个函数没有进行声明，会出什么问题哪？ 大多数的情况下可能会出现问题，有些情况下，可能是幸运不会出现问题。 看下面这段代码： un</description><comments></comments><guid>http://blog.ednchina.com/bpesun/125648/message.aspx</guid><category></category><author>bpesun</author></item><item><title>一步一步写一个短信SMS协议栈FreeSmsStack（1）</title><pubDate>Fri, 06 Jun 2008 17:41:40 GMT</pubDate><link>http://blog.ednchina.com/bpesun/123367/message.aspx</link><description>一步一步写一个短消息收发协议栈（1）――基于TC35i和ATMega32的短消息协议栈FreeSmsStackV1.0bpesun@163.com1. 目的本项目的目的是完成一个建立在TC35i模块上的短消息协议栈。我给这个协议栈起的名字是FreeSmsStack。从名字上可以看出，这个协议栈是一个</description><comments></comments><guid>http://blog.ednchina.com/bpesun/123367/message.aspx</guid><category></category><author>bpesun</author></item><item><title>开发中如何使用WinCVS</title><pubDate>Fri, 18 Apr 2008 14:07:24 GMT</pubDate><link>http://blog.ednchina.com/bpesun/107017/message.aspx</link><description>什么是CVS，为什么要使用它。 CVS是个版本控制系统，使用它你可以记录你源代码文件的历史。　 例如，当软件修改时有时会产生问题（*bugs这里被译为问题），并且你可能在做这　 次修改后很长时间不会发现这些问题。使用CVS，你可以容易地回顾老的代码版本去　 发现哪一次的修改导致这些问题。有时候这样会</description><comments></comments><guid>http://blog.ednchina.com/bpesun/107017/message.aspx</guid><category></category><author>bpesun</author></item><item><title>双电源切换电路</title><pubDate>Wed, 02 Apr 2008 10:33:43 GMT</pubDate><link>http://blog.ednchina.com/bpesun/100281/message.aspx</link><description> 系统设计中常常会碰到有双电源供电的情况。其中一个是主电源，而另外一个是备用电源(通常为电池)。 在设计中往往需要实现电池与主电源的隔离，而采用MOS管是一种很有效的方式。附件是在双电源设计中可以使用的电路。详细分析了一种双电源切换电路的原理。并且给出了设计的心得。 描述的可能有不对的地方，请多指教</description><comments></comments><guid>http://blog.ednchina.com/bpesun/100281/message.aspx</guid><category></category><author>bpesun</author></item><item><title>采用SHT11与ATMEG168制作温湿度传感器</title><pubDate>Wed, 19 Mar 2008 22:36:00 GMT</pubDate><link>http://blog.ednchina.com/bpesun/95193/message.aspx</link><description> SHT11是一款由瑞士Sensirion公司生产的智能型温湿度传感器，该传感器是数字式的输出接口，具有免调试、低功耗、高可靠性和全互换的特点。 ATMEG168是一款便宜的低功耗8位单片机，应用非常广泛，又有免费的编译器GCC（WINAVR），在线编程工具也很便宜。 我们将一步一步完成基于这两个芯</description><comments></comments><guid>http://blog.ednchina.com/bpesun/95193/message.aspx</guid><category></category><author>bpesun</author></item><item><title>免费的提供源代码的Modbus协议栈的实现－FreeModbus网站中文翻译稿</title><pubDate>Thu, 21 Feb 2008 17:04:15 GMT</pubDate><link>http://blog.ednchina.com/bpesun/85682/message.aspx</link><description>Freemodbus是一个奥地利人写的modbus协议栈。我把它的网站下载下来，并且翻译成了中文，可以在附件一中找到，目录为 \freemodbus\freemodbus\www.freemodbus.org\index.htm。 对于该协议栈的简单介绍见第二个附件。 在一个项目中，我使用了这个协议</description><comments></comments><guid>http://blog.ednchina.com/bpesun/85682/message.aspx</guid><category></category><author>bpesun</author></item><item><title>深入了解指向指针的指针</title><pubDate>Sun, 20 Jan 2008 10:23:16 GMT</pubDate><link>http://blog.ednchina.com/bpesun/80947/message.aspx</link><description>编程的时候，看到下面的一个函数：eMBErrorCode eMBASCIIReceive( UCHAR * pucRcvAddress, UCHAR ** pucFrame, USHORT * pusLength ) { eMBErrorCode eStatus = MB_ENOERR; ENTER</description><comments></comments><guid>http://blog.ednchina.com/bpesun/80947/message.aspx</guid><category></category><author>bpesun</author></item><item><title>音视频基础知识-端子</title><pubDate>Sat, 12 Jan 2008 20:02:03 GMT</pubDate><link>http://blog.ednchina.com/bpesun/78294/message.aspx</link><description>介绍了用在音视频设备上的端子，包括S端子、复合音视频端子、VGA等等。</description><comments></comments><guid>http://blog.ednchina.com/bpesun/78294/message.aspx</guid><category></category><author>bpesun</author></item><item><title>传统的复位电路</title><pubDate>Wed, 26 Dec 2007 09:27:08 GMT</pubDate><link>http://blog.ednchina.com/bpesun/73028/message.aspx</link><description>传统的复位电路如下所示：现在再好好分析一下：1，二极管D501的用途如果没有D501，当断电后又立刻上电，电容上的电荷不能放完，则无法正常复位。当，当系统断电时，VCC负载很重，所以下降的很快，而C502负载轻，所以下跌的慢，加上D501时，VCC下降，电容就会会跟着下降，复位端电压会跟着迅速下降。</description><comments></comments><guid>http://blog.ednchina.com/bpesun/73028/message.aspx</guid><category></category><author>bpesun</author></item><item><title>使用无源232－485转换器的通信不畅的问题</title><pubDate>Mon, 29 Oct 2007 16:07:59 GMT</pubDate><link>http://blog.ednchina.com/bpesun/55756/message.aspx</link><description> 一个采用485总线的项目，刚调试的时候，数据通信正常。（4个节点，485总线最远也就是300米）过了几天，再去检查发现老是通信不顺畅。开始怀疑是线的问题，检查后发现线没有问题。后来更换成为了有源隔离类型的485转换器，立刻就工作正常了。 看来无源485转换器的通信距离还是非常有限的，当485总线比</description><comments></comments><guid>http://blog.ednchina.com/bpesun/55756/message.aspx</guid><category></category><author>bpesun</author></item><item><title>电热蚊香拆解报告</title><pubDate>Sun, 21 Oct 2007 12:25:14 GMT</pubDate><link>http://blog.ednchina.com/bpesun/53884/message.aspx</link><description>电热蚊香拆解  今年夏天，我们屋里面蚊子肆虐，扰民问题异常严重。采用环保的手工击打方法效果太有限了，经常的晚间作业也导致了我们睡眠质量的下降。无奈下，买了电蚊香，效果倒是比较明显。显然，电热蚊香的原理应该是用电阻丝加热蚊香液，靠散发到空气中的蚊香液来驱蚊。为了清楚了解电热蚊香的成本，故拆解之。详细的</description><comments></comments><guid>http://blog.ednchina.com/bpesun/53884/message.aspx</guid><category></category><author>bpesun</author></item><item><title>一个思维习惯问题，要发现问题并且思考解决办法</title><pubDate>Thu, 18 Oct 2007 10:20:32 GMT</pubDate><link>http://blog.ednchina.com/bpesun/53260/message.aspx</link><description> 昨天跟一个同事一块出去调试设备，回来的时候需要带回一台电脑主机及其电源线。为了好搬主机，就把电源线扯了下来，并顺手放在主机旁边。这时候还突然想到，不要丢了线（仅仅想到这些）。回来后，拿出主机，突然没有了电源线，就问同事。结果同事拍拍衣兜，说在这里。 我想同事在搬主机的时候肯定有跟我同样的想法（不要</description><comments></comments><guid>http://blog.ednchina.com/bpesun/53260/message.aspx</guid><category></category><author>bpesun</author></item><item><title>Freemodbus之工具函数</title><pubDate>Mon, 24 Sep 2007 09:35:49 GMT</pubDate><link>http://blog.ednchina.com/bpesun/48535/message.aspx</link><description>Utilities工具Detailed Description详细描述This module contains some utility functions which can be used by the application. It includes some special function</description><comments></comments><guid>http://blog.ednchina.com/bpesun/48535/message.aspx</guid><category></category><author>bpesun</author></item><item><title>freemodbus之Modbus协议配置</title><pubDate>Tue, 18 Sep 2007 14:44:44 GMT</pubDate><link>http://blog.ednchina.com/bpesun/47439/message.aspx</link><description>Modbus ConfigurationModbus配置 Detailed Description详细描述Most modules in the protocol stack are completly optional and can be excluded. This is specially </description><comments></comments><guid>http://blog.ednchina.com/bpesun/47439/message.aspx</guid><category></category><author>bpesun</author></item><item><title>Modbus协议的寄存器操作</title><pubDate>Mon, 17 Sep 2007 11:37:39 GMT</pubDate><link>http://blog.ednchina.com/bpesun/47116/message.aspx</link><description>Modbus RegistersModbus的寄存器Detailed Description详细描述 #include &amp;quot;mb.h&amp;quot; The protocol stack does not internally allocate any memory for the registers. This </description><comments></comments><guid>http://blog.ednchina.com/bpesun/47116/message.aspx</guid><category></category><author>bpesun</author></item><item><title>读书笔记之《C语音嵌入式系统开发》</title><pubDate>Sat, 15 Sep 2007 22:56:50 GMT</pubDate><link>http://blog.ednchina.com/bpesun/46895/message.aspx</link><description> 前几天粗粗地读了Michael J.Pont编著的《C语音嵌入式系统开发》，感觉写的非常浅显易懂，并且似乎也不知不觉学到了一些知识点。我下面将记录我在读这书中的心得。 嵌入式系统是一种应用系统，它至少包含一个可编程的计算机。 第一章 嵌入式系统中的C语音编程 先摘录一段文字：“如果每个项目开放都是</description><comments></comments><guid>http://blog.ednchina.com/bpesun/46895/message.aspx</guid><category></category><author>bpesun</author></item><item><title>上传一个以前写的学习笔记</title><pubDate>Sat, 15 Sep 2007 16:47:09 GMT</pubDate><link>http://blog.ednchina.com/bpesun/46799/message.aspx</link><description>一个有关NXP的LPC900系列单片机的ISP应用的应用笔记。一个有关EEPROM读写的应用笔记。包括模拟IIC和硬件IIC对EEPROM进行读写。一个有关时钟芯片DS1302和AVR单片机接口的应用笔记。</description><comments></comments><guid>http://blog.ednchina.com/bpesun/46799/message.aspx</guid><category></category><author>bpesun</author></item><item><title>模块－modbus模块</title><pubDate>Fri, 14 Sep 2007 15:26:31 GMT</pubDate><link>http://blog.ednchina.com/bpesun/46689/message.aspx</link><description>Detailed Description详细描述 #include &amp;quot;mb.h&amp;quot; This module defines the interface for the application. It contains the basic functions and types required to </description><comments></comments><guid>http://blog.ednchina.com/bpesun/46689/message.aspx</guid><category></category><author>bpesun</author></item></channel></rss>