;
;指撥開關/8個LED實習板:補充範例(1)
; 用第一個指撥開關ON/OFF控制左旋/右旋,其餘的七個不用
; 第一個指撥開關接到8051的 P1.0;
; [注意]:共陰接法, 1->OFF, 0->ON; 共陽接法, 1->ON, 0->OFF; 此例採用共陰接法
; 若 P1.0==1 (即OFF)則右旋; 若 P1.0==0 (即ON)則左旋;
START:
MOV A,#7FH
LOOP:
JNB P1.0, ELSE ; 若P1.1==0則跳到 ELSE: 去做左旋
RR A ; 否則執行 右旋
AJMP END_IF ; 做完右旋後, 要跳開 ELSE, 避開左旋, 以免做白工
ELSE:
RL A ; 做左旋
END_IF:
MOV P0,A ; 輸出到 LED 上
ACALL DELAY ; 拖一下時間
AJMP LOOP
DELAY
MOV R4, #150
DL1:
MOV R5, #250
DL2: NOP
DJNZ R5, DL2
DJNZ R4, DL1
RET
END
2007年3月29日 星期四
設備規劃
#################################################################
總共︰72K (NT: 72,000元)
晶強科技: http://chippower.myweb.hinet.net/index11.htm
益眾產品: http://www.icci.com.tw/
晶強科技: http://chippower.myweb.hinet.net/index11.htm
8051/CPLD發展教具 - 10k
8051/ARM 實驗板 + 128x64 LCD - 1.5k
ARM7 開發板 (STR710F) - 2.4k
USB 8051 開發板(T89C51RB2 ) - 1.5k
益眾產品: http://www.icci.com.tw/book66/_file/2307/cb/cly/AllnullCA000000230700005112066265.html?&c_id=CA0000002307000051
文魁資訊:
單晶片 8051 KEIL C 實作入門, 編號: P5067 - (附錄 H 設計並製作簡易 8051 模擬器)
知行文化:
Visual Basic與電腦I/O控制實務, 書號:16-004, 定價:460 元
CPLD與數位邏輯設計應用--入門篇, 書號:16-002, 定價:320 元
#################################################################
總共︰72K (NT: 72,000元)
- CPLD與單晶片整合開發系統, 16K
規格: Core系統包含 USB 8051、ARM 7、 8051 ISP
- ME-52模擬器, 15K
規格: 64KB模擬記憶體、即時解析度為1us、有外部信號斷點。
- FPGA 與 8051單晶片整合開發系統, 16K.
規格: 由Com1/2 進行 8051 ISP,ACEX-1K晶片,搭配MAX+PLUSⅡ - 語音電話遙控和讀卡整合系統, 15K.
規格: 8051、RF、讀卡機、8051軟體模擬. - 可程式數位邏輯發展系統, ACEX 1K CPLD, 10K.
規格: Altera ACEX、 PC連線模擬及燒錄、可搭配MAX+PLUS 軟體。
晶強科技: http://chippower.myweb.hinet.net/index11.htm
- CPLD與單晶片整合開發系統, 16K
規格: Core系統包含 USB 8051、ARM 7、 8051 ISP
益眾產品: http://www.icci.com.tw/
- ME-52模擬器, 15K
規格: 64KB模擬記憶體、即時解析度為1us、有外部信號斷點。
- FPGA 與 8051單晶片整合開發系統, 16K.
規格: 由Com1/2 進行 8051 ISP,ACEX-1K晶片,搭配MAX+PLUSⅡ - 語音電話遙控和讀卡整合系統, 15K.
規格: 8051、RF、讀卡機、8051軟體模擬. - 可程式數位邏輯發展系統, ACEX 1K CPLD, 10K.
規格: Altera ACEX、 PC連線模擬及燒錄、可搭配MAX+PLUS 軟體。
晶強科技: http://chippower.myweb.hinet.net/index11.htm
8051/CPLD發展教具 - 10k
8051/ARM 實驗板 + 128x64 LCD - 1.5k
ARM7 開發板 (STR710F) - 2.4k
USB 8051 開發板(T89C51RB2 ) - 1.5k
益眾產品: http://www.icci.com.tw/book66/_file/2307/cb/cly/AllnullCA000000230700005112066265.html?&c_id=CA0000002307000051
- ME-52模擬器, NT 15000,
http://www.icci.com.tw/book66/_file/2307/cb/md/nullMD00000023070008082066265.html - 8051/CPLD/FPGA發展系統, NT 16000,
http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000936&command=displayDetail
- 語音
- TRC-2004 語音電話遙控器, NT 5500,
http://www.icci.com.tw/web/MdFront?p_id=MD0000002307001432&command=displayDetail
- 8051/RF語音實習板, NT 4200, http://www.icci.com.tw/web/MdFront?p_id=MD0000002307001351&command=displayDetail
- 讀卡機實驗模組-9012, NT 3300 , http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000639&command=displayDetail
- SIM51軟體模擬器/EP51-200組譯器, NT 1600, http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000793&command=displayDetail
- ACEX 1K CPLD數位邏輯發展系統, NT 7500,
http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000878&command=displayDetail
文魁資訊:
單晶片 8051 KEIL C 實作入門, 編號: P5067 - (附錄 H 設計並製作簡易 8051 模擬器)
知行文化:
Visual Basic與電腦I/O控制實務, 書號:16-004, 定價:460 元
CPLD與數位邏輯設計應用--入門篇, 書號:16-002, 定價:320 元
#################################################################
ISP 材料
AT89S51 100 顆, 其餘各 70 套
ISP:
Experiments:
ISP:
- DB25 cable: male-male
- Mini connector: 3P*1, 2P*1, 1P*2; total 7 colors
- Adapter: 5V,1A
- Capacitors: 1u*1, 33p*2
- Resistors: 330*6
- Oscillator: 12MHz
- LED * 2
Experiments:
- LED
- DIP switch + LED:
- (1) Simpe IO
- (2) Conditional display patterns: left-right, inside-out, phase
- (3) conditional running speed for display
- 7-segment display
- (1) counting: incremental/decremental; odd/even;
- (2) 2 digit counting: incremental/decremental; odd/even;
- Counter:
- counter + LED
- counter + 7-segment display
- DIP switch + 7-segment display
- (1) report switch selection with LED
- (2) Priority: report the largest turn-on switch
- (3) Counting: how many switches are ON?
- (4) Binary-to-decimal/Hex/BCD convertion: 1 digit, 2 digit, 2's complement
- (5) Conditional counter: control by switch; eg. inc/dec, stop watch, counting step,
-
-
2007年3月28日 星期三
SNMP簡介
SNMP簡介
- SNMP的架構︰Agent、NMS、MIB、版本
- MIB︰
- SNMP Protocol︰指令 get、get-next、get-response、set、trap。UDP port︰161/162
- 練習工具︰net-snmp
- 安裝 net-snmp 和 grep
- oid 簡寫慣例 和 翻譯
- 練習用 snmpwalk (用 get )取得 router/switch 的各 port 資訊
snmpwalk -v 1 -c public 203.64.180.254 sysDescr
snmpwalk -v 1 -c public 203.64.181.254 ipRouteTable
snmpwalk -v 1 -c public 203.64.182.254 ifAdminStat
snmpwalk -v 1 -c public 203.64.174.254 ifInOctets (各port之輸入流量)
snmpwalk -v 1 -c public 203.64.174.254 ifOutOctets (各port之輸出流量)
網路上參考文件
- http://www2.rad.com/networks/1995/snmp/snmp.htm︰初學者入門文件 (96/03/15講解過)。
- ㊣ http://www.et.put.poznan.pl/snmp/intro/indexint.html︰對 MIB-II 的各幾個重要分支 (system、ip、interface、at 等等) 有簡易的說明。
- ㊣ http://www.net-snmp.org/tutorial/tutorial-5/ Net-SNMP 5.x 版的指令說明。
- ㊣ http://net-snmp.sourceforge.net/wiki/index.php/Tutorials Net-SNMP 的 Wiki 文件。
- 自己去 Google 一下,會發現更多有用的資訊!
2007年3月27日 星期二
95-B 設備採購規劃
95-B 設備採購規劃
五項, 共72K (NT: 72,000元)
五項, 共72K (NT: 72,000元)
- CPLD與單晶片整合開發系統, 16K
規格: Core系統包含 USB 8051、ARM 7、 8051 ISP
- ME-52模擬器, 15K
規格: 64KB模擬記憶體、即時解析度為1us、有外部信號斷點。
- FPGA 與 8051單晶片整合開發系統, 16K.
規格: 由Com1/2 進行 8051 ISP,ACEX-1K晶片,搭配MAX+PLUSⅡ - 語音電話遙控和讀卡整合系統, 15K.
規格: 8051、RF、讀卡機、8051軟體模擬. - 可程式數位邏輯發展系統, ACEX 1K CPLD, 10K.
規格: Altera ACEX、 PC連線模擬及燒錄、可搭配MAX+PLUS 軟體。
2007年3月9日 星期五
Perl PLP for Apache 2.x
PLP速度比PHP快!
PLP = HTML+PERL for Apache
Patch for PLP-3.19 on Apache2
Patch for 'PLP.pm':
============================================================
142c142
< return Apache::Constants::OK();
---
> return Apache2::Const::OK();
154c154
< return Apache::Constants::NOT_FOUND();
---
> return Apache2::Const::NOT_FOUND();
157c157
< return Apache::Constants::FORBIDDEN();
---
> return Apache2::Const::FORBIDDEN();
============================================================
Patch for 'Fields.pm':
============================================================
31c31
< $post = Apache->request->content;
---
> $post = Apache2::RequestUtil->request->content;
============================================================
2007年3月7日 星期三
8051 Links
8051線上程式除錯器--http://bit.kuas.edu.tw/~ccchen/project/
NoICE -- http://www.noicedebugger.com/index.html
PAULMON2 -- http://www.pjrc.com/tech/8051/pm2_docs/hardware.html
8051 Development Tools -- http://bit.kuas.edu.tw/~8051/
益眾科技 -- http://www.icci.com.tw/web/Home?FP=7615, Keil ICE
晶強科技 -- http://chippower.myweb.hinet.net/index11.htm
單晶片 8051 KEIL C 實作入門 -- http://www.kingsinfo.com.tw/item_detail.asp?pro_id=6148
NoICE -- http://www.noicedebugger.com/index.html
PAULMON2 -- http://www.pjrc.com/tech/8051/pm2_docs/hardware.html
8051 Development Tools -- http://bit.kuas.edu.tw/~8051/
益眾科技 -- http://www.icci.com.tw/web/Home?FP=7615, Keil ICE
晶強科技 -- http://chippower.myweb.hinet.net/index11.htm
單晶片 8051 KEIL C 實作入門 -- http://www.kingsinfo.com.tw/item_detail.asp?pro_id=6148
2007年3月5日 星期一
Web Calendar
iCal--http://www.k5n.us/webcalendar.php
PHP iCalendar--http://phpicalendar.net/
Plans 7.9.2--http://www.planscalendar.com/index.php
WebCalendar--http://www.ma.utexas.edu/webcalendar/doc/index.html
PHP iCalendar--http://phpicalendar.net/
Plans 7.9.2--http://www.planscalendar.com/index.php
WebCalendar--http://www.ma.utexas.edu/webcalendar/doc/index.html
訂閱:
文章 (Atom)