08 2011 档案

51单片机(STC89C52RC) keil软件精确定时 浅析
摘要:这里主要是对使用keil环境下,提高51单片机软件精度的问题给出自己的一点小看法,参阅了文章利用 Keil Cx51实现T0的精确定时,使用文章中的方法的确是可以提高软件精度,可是一碰到中断函数中语句较多,且main函数其它任务的时候,总是觉得力不从心,因为要计算中断执行时间就够我受的了。我可是很懒的,研究之下发现了一些东西。51误差主要是来自两个方面:晶振和单片机中断系统的误差晶振:我们的晶振一般误差都是20PPM的,百万分之二十。想提高精度,只能选择误差更小的晶振,但它毕竟不是为精确定时设计的,很难达到时钟芯片晶振的精度。中断系统的误差:定时器产生中断请求以后,并不一定能马上响应这个中.. 阅读全文

posted @ 2011-08-24 02:05 9号 阅读(964) 评论(0) 推荐(0)

关于在gtk+操作图形控件的小结
摘要:1.在实际的操作当中,碰到了如何获得同一窗口控件,如何能够获得另一个窗口控件,如何能够获得控件所在窗口等等问题,查看FAQ能够得到使用g_object_get_data ()和g_object_set_data ()附加数据gtk_widget_get_toplevel ()获得控件的顶层窗口到目前为止,我还是不懂如何使用glade+gtk+结合的方式操作控件,翻越了google以后得到如下线索,可以方便的操纵控件,定义一个传递的数据结构,形如:typedef struct _Data Data;struct _Data{ GtkBuilder *builder; GtkWidget *msg 阅读全文

posted @ 2011-08-09 18:24 9号 阅读(400) 评论(0) 推荐(0)

Spy++ -like tools on linux
摘要:How to get the list of open windows from xserverFrom the CLI you can usexwininfo -tree -rootWhen coding, use the XQueryTree function from the Xlib library.See also Does anyone know something like WinSpy on Xwin? xwininfo - For getting some window parameters(part of xorg install)wininfo - A small gtk 阅读全文

posted @ 2011-08-07 12:53 9号 阅读(739) 评论(0) 推荐(0)

Ubuntu 10.04 Virtualbox USB设备分配 解决方法
摘要:在Ubuntu 10.04当中安装Virtualbox 4.0后,需要添加usb设备,已经更简单的在 VirtualBox中使用 USB的方案了: For Lucid Add yourself to the user group vboxusers , then log out and back in, to make use of available USB devices. To do this via the graphical interface, click in the menu System/Administration/ Users and Groups. 原来 Virtual 阅读全文

posted @ 2011-08-02 12:55 9号 阅读(474) 评论(0) 推荐(0)

导航