Thursday, November 7, 2013
Microsoft Visual Studio 2005
在一般的command prompt可以加入這行指令。
system(“pause”);
在MVS環境下,Ctrl + F5就可以得到相同效果。
Reference
http://stackoverflow.com/questions/193469/how-to-make-visual-studio-pause-after-executing-a-console-app-in-debug-mode
Wednesday, November 6, 2013
Notepad++
HEX editor in plug in module
dB (Decibel)
簡單來說這是能量的比值表示法[1]。
關鍵詞會鎖定在gain/attenuation
amplitude跟power差一個次方。
常見3dB(2), 6dB(4), 20dB(100)
我們都知道C語言math.h[8]當中會有log(), log2(), log10()函式可以使用,
而這些函式是如何設計實現呢?
或換言之,在嵌入式系統中,我們該如何在有限的資源裡轉換dB值呢?
這都是一門技術。
這裡先簡單帶過之後有時間再做詳細介紹。
主要是透過Taylor expansion[4]和logarithm rule[3],透過一些誤差犧牲而換取有效的得到轉換值所產生的。
自然函數能利用Taylor expansion來呈現,若要轉換基底就透過一些對數規則[3]做轉換。
透過觀察[4]我們能知道Taylor expansion對於自然對數的呈現,若N級數很大的情況下在-1 ~ 1之間較為精準,若級數較小時-0.5 ~ 0.5較為精確。
Reference
[1]http://en.wikipedia.org/wiki/Decibel
http://en.wikipedia.org/wiki/Logarithm
[3]http://www.rapidtables.com/math/algebra/Logarithm.htm
[4]http://en.wikipedia.org/wiki/Taylor_series
http://en.wikipedia.org/wiki/Common_logarithm
[6]http://mathworld.wolfram.com/NaturalLogarithm.html
http://en.wikipedia.org/wiki/Natural_logarithm_of_2
[8]http://www.codecogs.com/library/computing/c/math.h/log.php
http://stackoverflow.com/questions/15967240/fastest-implementation-of-log2int-and-log2float
http://stackoverflow.com/questions/9411823/fast-log2float-x-implementation-c
Sunday, November 3, 2013
gcc for Window
Download mingw-get and simply issue:
mingw-get install gcc.
See the Getting Started page.
Reference
http://stackoverflow.com/questions/6394755/how-to-install-gcc-on-windows-7-machine
Wednesday, October 23, 2013
硬體製造測試流程
ATE(Auto Test Equipments), known as Device Under Test(DUT), Unit Under Test(UUT)
分兩個階段
- die
- package
System Level Test(SLT)
Reference
音響測試
white noise
雜音涵蓋全頻域猶如白色一樣。
pink noise
白色+紅色 = 粉紅
紅色頻率 = 電器產品
Reference:
Tuesday, October 22, 2013
Bluetooth for Car Stereo of vw polo
最近想要用手機與自己的愛車VW polo的原廠音響做連線,看看可不可以免持聽筒或是音樂的傳播,但聽到只出張嘴巴的sales說原配沒有這樣的支援,除非要貼錢換更好的台製音響才能有這樣的功能。
於是就開始了一連串的研究,首先,如果有跟我一樣是VW的車主,可以參考下面的網址。
http://my.vw.com/2013-passat/technology/bluetooth-faqs
簡單來說,把音響打開,bluetooth也打開搜尋連線,應該會有類似的裝置名稱(EL-540-CON2)跑出,應該每台車子有不同的名稱,接下來把密碼"0000"打進去。就OK了~~只是第一次連線會比較久一點,設定好之後就可以使用免持聽筒的功能囉。
這時候,大家一定在想如果可以使用免持聽通那是不是就可以傳音樂了呢?
答案是可能要看音響的規格,依我的來說只有支援Hands-Free Profile (HFP)。
所以說並沒有正規的方式傳遞音樂,如果硬是要傳也是可以,但音質就大大折扣。
如果有支援Advanced Audio Distribution Profile (A2DP)那就可聽比較好的音樂囉。
至於,Audio/Video Remote Control Profile (AVRCP)是用來控制設備的協定。
因為我是用iphone的手機,所以要找到用來破壞協定方式傳定音樂的相關軟體,難呀。
有也是要付費
A2DPblocker
或是破解手機,
Bluetooth Mono SBSettings Toggle
但其他系統的APP應該就比較容易些。
這邊有兩個軟體給各位參考一下。
Reference
Register Transfer Level Design with Verilog (1) [ebook]
設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...
-
在之前的文章中有提到UEFI的系統大概可以區分兩個階段,起初是Boot Service再來就是Runtime Service(RS)如紅框所涵蓋的程序都可以稱為RS。 區分這兩個Service最重要的一項轉類點函數為 ExitBootServices()...
-
Handle的類型主要可以區分為這三種 executable image (drivers, application) – Agent Handles devices (network controller, hard drive partitions) – Cont...
-
Shell> devices 透過這個指令可以觀察目前UEFI內有幾個硬體被控制著。也提供不少的訊息給設計者,如 TYPE是說明此設備是 [R] Root Controller [B] Bus Controller [D] Device Controller ...