2017年12月10日 星期日

STM32 timer encoder 模式

STM32 timer encoder 模式,會使用特定的timer 腳位,不能任意使用不同腳位。

如下 blog 所圖示:
http://elastic-notes.blogspot.tw/p/cubemx-stm32-encoder-interface.html



2017年10月30日 星期一

2017年10月24日 星期二

使用 IAR 小技巧 (加入 AStyle, Eclipse)

IAR compiler 雖然效能最好, 但 IDE 真的不好用.
使用2個小技巧, 可以讓開發變得友善, 容易一些
一是加入排版工具AStyle. 二是可使用 Eclipse IAR 外掛


1. 加入 AStyle, 作排版
http://blog.csdn.net/lidingtian/article/details/52187548

2. 使用 Eclipse IAR 外掛
http://eclipse-update.iar.com/
https://read01.com/zh-tw/gL3K.html#.We8FklWWbIW
http://blog.csdn.net/u011408697/article/details/50098625





2017年10月10日 星期二

Word 新增註解 字體變小問題 解決方法

在新版Word 編輯之後, 再由Word 2007 開啟編輯 -> 存檔 -> 關閉檔之後, 再開啟文件. 會產生新增註解字體變小問題. 此為Word 相容性問題.

以下步為解決方法:
1. 選擇到 [檢視] 頁面 -> 巨集 -> 檢視巨集, 按下 [檢視巨集]
2. 按下 [組合管理]
3. 選擇到 [樣式] , 往下到 [註解方塊文字], 按下 [刪除]
4. 按下 []
 5. 關閉對話框, 新增註解字體大小 即可回復正常

2017年7月19日 星期三

ARMv8-A Data types

ARM Cortex-A Series Programmer’s Guide for ARMv8-A

Data types

In many programming environments for C and C-derived languages on 64-bit machines, int variables are still 32 bits wide, but long integers and pointers are 64 bits wide. These are described as having an LP64 data model. This chapter assumes LP64, though other data models are available, see Table 5.1. The ARM ABI defines a number of basic data types for LP64. Some of these can vary between architectures, and are included in the following:



參考: http://infocenter.arm.com/help/index.jsp?topic=%2Fcom.arm.doc.den0024a%2Fch08s02.html

2017年7月2日 星期日

C 語言學習資源

這兩天看到大陸的教學視頻,C语言从菜鸟到高手,記錄一下幾個 C 語言學習資源

C语言从菜鸟到高手 传智播客 尹成
共有340集視頻
http://www.bilibili.com/video/av5120945/?from=search&seid=17388912961331436624

100条经典C语言笔试题目
https://wenku.baidu.com/view/9364c269b84ae45c3b358c7c.html

<<C和指針>> 筆記66條
https://forum.mianbaoban.cn/t/c-66/44480?utm_source=EETC%20Forum%20Alert&utm_medium=Email&utm_campaign=2017-07-03

Simen 大大的 slideshare 深入淺出 C語言
https://www.slideshare.net/simenli/c-49341309

還有就是 Jserv 大大的「你所不知道的 C 語言」系列講座
http://hackfoldr.org/dykc/