欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

專注電子技術學習與研究
當前位置:單片機教程網 >> MCU設計實例 >> 瀏覽文章

stc單片機下載協議研究

作者:佚名   來源:本站原創   點擊數:  更新時間:2008年10月02日   【字體:

眾所周知stc單片機是用串口下載的,他的下載協議我們一直不得而知,于是我用一個軟件截取了串行口的數據并進行了簡單的分析,(左邊為16進制的數據,右邊為文本顯示)哪位51hei的大俠,按照這個給寫個下載程序出來,共享給大家啊,

下面的內容是串口截取的數據

讀:

Port opened

Baud rate set to 9600

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
68 00 1C 00 29 FA 29 FE 29 FA 29 FA 29 FA 29 FA h...)ú)t)ú)ú)ú)ú
29 FE 29 FA 32 43 FD F1 08 82 91 16 )t)ú2Cy?.??.
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 68 00 0C 8F FF FA 00 0C 28 80 B0 16 F1h..??ú..(?°.
Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 68 00 0B 8E FF FA 00 0C 17 1D 16 46 B9 68 F1h..??ú.....F1h
00 06 80 EE 16 46 B9 68 00 06 80 EE 16 46 B9 68 ..??.F1h..??.F1h
00 06 80 EE 16 46 B9 68 00 06 80 EE 16 46 B9 68 ..??.F1h..??.F1h
00 06 80 EE 16 ..??.
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 68 00 06 80 EE 16 46 B9 68 00 07 80 00 EF F1h..??.F1h..?.?
16 46 B9 68 00 07 80 A1 90 16 46 B9 68 00 07 80 .F1h..???.F1h..?
00 EF 16 46 B9 68 00 07 80 00 EF 16 46 B9 68 00 .?.F1h..?.?.F1h.
07 80 00 EF 16 46 B9 68 00 06 80 EE 16 .?.?.F1h..??.
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed


寫:

Port opened

Baud rate set to 9600

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 
7F 7F 7F 7F 7F 7F 
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 0C 8F FF FA 00 0C 28 80 B2 16 F1j..??ú..(?2.
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8

Port closed

Port opened

Baud rate set to 1200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 0B 8E FF FA 00 0C 17 1F 16 F1j..??ú.....
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 06 80 F0 16 46 B9 6A 00 06 80 F0 16 F1j..?e.F1j..?e.
46 B9 6A 00 06 80 F0 16 46 B9 6A 00 06 80 F0 16 F1j..?e.F1j..?e.
46 B9 6A 00 06 80 F0 16 F1j..?e.
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 0D 84 01 33 33 33 33 33 33 2E 16 46 F1j..?.333333..F
B9 6A 00 8C 00 00 00 02 00 00 80 00 00 00 00 00 1j.?......?.....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 78 16 46 B9 6A ...........x.F1j
00 8C 00 00 00 00 00 00 80 02 00 03 78 7F E4 F6 .?......?...x??
D8 FD 75 81 07 02 00 0F 75 A0 55 80 FE 00 00 00 ?yu?....u U?t...
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 17 16 46 B9 6A 00 8C ...........F1j.?
00 00 00 00 80 00 80 00 00 00 00 00 00 00 00 00 ....?.?.........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 F6 16 46 B9 6A 00 8C 00 00 .......?.F1j.?..
00 01 00 00 80 00 00 00 00 00 00 00 00 00 00 00 ....?...........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 77 16 46 B9 6A 00 8C 00 00 00 01 .....w.F1j.?....
80 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 ?.?.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 F7 16 46 B9 6A 00 06 82 F2 16 46 B9 6A ...÷.F1j..?ò.F1j
00 08 52 02 00 C6 16 ..R..?.
Port closed

Port opened

Baud rate set to 115200

StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 06 82 F2 16 46 B9 6A 00 08 52 02 00 F1j..?ò.F1j..R..
C6 16 ?.
Port closed


1.上:發送 7F 下載命令
2.下:
回應:
68 00 1C 00 29 FA 29 FA 29 FA 29 FA 29 FA 29 FA 29 FA 29 FE 32 43 FD F1 08 82 8D 16
3.上:
46 B9 6A 00 0C 8F FF FA 00 0C 28 80 B2 16


 

關閉窗口