2018年6月1日

Be Careful When Using Bit Field

摘要: Below illustration is based on MSP430, IAR. See the implementation below. Let’s check the assemble code, there are total 26 execution codes and 28 exe 阅读全文

posted @ 2018-06-01 16:00 荷树栋 阅读(140) 评论(0) 推荐(0) 编辑

2018年5月25日

Avoiding post increase or decrease

摘要: When we write a loop, most of us will use post increase or decrease, but there is a better solution. See below examples, which one is the better one? 阅读全文

posted @ 2018-05-25 15:23 荷树栋 阅读(213) 评论(0) 推荐(0) 编辑

2018年4月13日

Power consumption comparison

摘要: Here is my draft evaluation when old MCU replacement for power consumption, the comparsion betwween PIC and MSP430. The current calculation is based o 阅读全文

posted @ 2018-04-13 16:31 荷树栋 阅读(135) 评论(0) 推荐(0) 编辑

2018年3月29日

转变思维解决问题

摘要: 最近在做一个产品的BUG调查,在修复Bug时,有一些思维方法上的碰撞,记录之。 有一个远程NAC模块,支持1-4个NAC电路。每一个路可以接几十个不同厂商的NAC设备。这个远程NAC模块用于输出标准所要求的Pattern. 标准要求不同NAC设备输出声音,闪光都要同步。远程NAC可以接到不同的主控制 阅读全文

posted @ 2018-03-29 15:33 荷树栋 阅读(142) 评论(0) 推荐(0) 编辑

2018年3月15日

Big-endian/Little-endian, LSB/MSB

摘要: Least significant byte (LSB) Most significant byte (MSB) Big-endian machines store the most-significant byte at the lowest-numbered address, with the 阅读全文

posted @ 2018-03-15 12:23 荷树栋 阅读(573) 评论(2) 推荐(0) 编辑

2018年3月13日

一个License的所带来问题

摘要: 在维护一个老产品时发现一个License的问题。产品是用Z80 Z8F6423, compiler用的是ZDS II Z8 Encode! 4.9.0。 由于有一个Bug要修复,所以我重新检查了一下它的license. 问题来了,这License要求比较奇怪: (c) include "Portio 阅读全文

posted @ 2018-03-13 15:55 荷树栋 阅读(412) 评论(0) 推荐(0) 编辑

2018年3月8日

几个OOD概念

摘要: Composition vs. Aggregation Composition和Aggregation都是”包含”的关系 (part of, made up of) ,不同的是生命周期。对于Composition, Owner负责创建和释放。 而Aggregation, Owner不负责创建和释放, 阅读全文

posted @ 2018-03-08 10:50 荷树栋 阅读(288) 评论(0) 推荐(0) 编辑

2018年3月7日

手动安装python库

摘要: 有些时候由于工作环境的限制如proxy,不能自动安装python 的第三方的库(用python –m pip install package)。在这个情况下,只能自己手动安装。以xlwt-1.3.0.tar.gz为例子。 Step 1: 下载xlwt-1.3.0.tar.gz Step 2: 解压 阅读全文

posted @ 2018-03-07 10:04 荷树栋 阅读(469) 评论(0) 推荐(0) 编辑

2018年3月6日

UML异步怎么表达

摘要: 直接看结果 第一虚框和第二虚框是异步的。m1 和m2 没有任何先后关系。 第一虚框和第二虚框是异步的,两者没有任何先后关系。m3和m4是有先后关系的。m3()比m4()先执行。同样m5()和m6(). 阅读全文

posted @ 2018-03-06 12:26 荷树栋 阅读(1132) 评论(0) 推荐(0) 编辑

2018年2月28日

Exclude the folders/files for indexing

摘要: 如果你的项目有非常多的文件,目录,Eclipse 有一个很好的Resource Filter 可以把有某些特征的文件,目录不再进行索引. 阅读全文

posted @ 2018-02-28 10:13 荷树栋 阅读(110) 评论(0) 推荐(0) 编辑

导航