亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bootloader log.txt

?? c8051f310xmodembootloader.rar
?? TXT
字號:
/******************************************************************************
** 	about bootloader 	 MCU:C8051F310
******************************************************************************/

bootloader:0x0000-0x1000
        AP:0x1000-0x3dff
  reserved:0x3dff-0x3fff


1,建立bootloader.c
  加入startup.a51
  在startup.a51(默認) 里面第120行 加入如下 中斷向量 函數地址映射
  如下:
  	ORG	0000BH    /*定時器0*/
	LJMP	0100BH    /*跳轉到用戶代碼區1000h以后*/
        ...               /*所有中斷*/
        ...
  在bootloader.c 中加入跳轉到AP區的指令
  如下:
        ((void(code *)(void))0x1100)();  /*0x1100 為startup.a51的地址*/
                                         /*一般放在 中斷映射后的地址*/


  編譯:燒錄從0x0000開始


2,建立AP.C 用戶代碼
  加入startup.a51  (可以不加)
  在keil->options->c51->interrupt vectors at address: 輸入中斷映射地址
  如下: 
       interrupt vectors at address: 0x1000 
  0x1000即AP的code區起始地址 也是中斷矢量地址的映射基地址開始。

  在keil->options->BL51 Locate 設置如下
  定義 code Rang 0x1000-0x3dff
  CODE: 輸入 ?C_C51STARTUP(1100H)        /*需要和bootloader中的跳轉地址一致*/
                                         /*只需要定位好這個地址*/
                                         /*這樣所有的中斷函數都不需要再次定位*/

  編譯:燒錄的時候 從0x1000 開始燒 即第7塊開始

  兩個代碼燒錄完,復位就可以運行
  
3,bootloader區串口等下載 不能出現中斷函數



另外一種IAP方法

前3字節 0000 0001 0002 做跳轉

用戶代碼區 0000-(IAP-512)區 但前3字節不允許修改 而燒錄的實際前3字節保存在IAP 前512字節里面
                            用于跳轉進入用戶代碼
IAP區 在程序的最后幾k字節 固定不允許修改 而0000 0001 0002這三字節地址的數據 存IAP的初始代碼地址

問題2個,iap也不能用中斷程序 ,如果剛好擦掉0000開始的地址一頁 斷點了那么無法恢復 進入IAP的指令


/******************************************************************************
** 	 The Xmodem Protocol Specification 
******************************************************************************/

The Xmodem Protocol Specification 

MODEM PROTOCOL OVERVIEW

1/1/82 by Ward Christensen. I will maintain a master copy of
this. Please pass on changes or suggestions via CBBS/Chicago
at (312) 545-8086, or by voice at (312) 849-6279.

NOTE this does not include things which I am not familiar with,
such as the CRC option implemented by John Mahr.

Last Rev: (none)

At the request of Rick Mallinak on behalf of the guys at
Standard Oil with IBM P.C.s, as well as several previous
requests, I finally decided to put my modem protocol into
writing. It had been previously formally published only in the
AMRAD newsletter.

Table of Contents
1. DEFINITIONS
2. TRANSMISSION MEDIUM LEVEL PROTOCOL
3. MESSAGE BLOCK LEVEL PROTOCOL
4. FILE LEVEL PROTOCOL
5. DATA FLOW EXAMPLE INCLUDING ERROR RECOVERY
6. PROGRAMMING TIPS.

-------- 1. DEFINITIONS.
<soh> 01H
<eot> 04H
<ack> 05H
<nak> 15H
<can> 18H

-------- 2. TRANSMISSION MEDIUM LEVEL PROTOCOL
Asynchronous, 8 data bits, no parity, one stop bit.

The protocol imposes no restrictions on the contents of the
data being transmitted. No control characters are looked for
in the 128-byte data messages. Absolutely any kind of data may
be sent - binary, ASCII, etc. The protocol has not formally
been adopted to a 7-bit environment for the transmission of
ASCII-only (or unpacked-hex) data , although it could be simply
by having both ends agree to AND the protocol-dependent data
with 7F hex before validating it. I specifically am referring
to the checksum, and the block numbers and their ones-
complement.
Those wishing to maintain compatibility of the CP/M file
structure, i.e. to allow modemming ASCII files to or from CP/M
systems should follow this data format:
* ASCII tabs used (09H); tabs set every 8.
* Lines terminated by CR/LF (0DH 0AH)
* End-of-file indicated by ^Z, 1AH. (one or more)
* Data is variable length, i.e. should be considered a
continuous stream of data bytes, broken into 128-byte
chunks purely for the purpose of transmission. 
* A CP/M "peculiarity": If the data ends exactly on a
128-byte boundary, i.e. CR in 127, and LF in 128, a
subsequent sector containing the ^Z EOF character(s)
is optional, but is preferred. Some utilities or
user programs still do not handle EOF without ^Zs.
* The last block sent is no different from others, i.e.
there is no "short block". 

-------- 3. MESSAGE BLOCK LEVEL PROTOCOL
Each block of the transfer looks like:
<SOH><blk #><255-blk #><--128 data bytes--><cksum>
in which:
<SOH> = 01 hex
<blk #> = binary number, starts at 01 increments by 1, and
wraps 0FFH to 00H (not to 01)
<255-blk #> = blk # after going thru 8080 "CMA" instr, i.e.
each bit complemented in the 8-bit block number.
Formally, this is the "ones complement".
<cksum> = the sum of the data bytes only. Toss any carry.

-------- 4. FILE LEVEL PROTOCOL

---- 4A. COMMON TO BOTH SENDER AND RECEIVER:

All errors are retried 10 times. For versions running with
an operator (i.e. NOT with XMODEM), a message is typed after 10
errors asking the operator whether to "retry or quit".
Some versions of the protocol use <can>, ASCII ^X, to
cancel transmission. This was never adopted as a standard, as
having a single "abort" character makes the transmission
susceptible to false termination due to an <ack> <nak> or <soh>
being corrupted into a <can> and canceling transmission.
The protocol may be considered "receiver driven", that is,
the sender need not automatically re-transmit, although it does
in the current implementations.

---- 4B. RECEIVE PROGRAM CONSIDERATIONS:
The receiver has a 10-second timeout. It sends a <nak>
every time it times out. The receiver's first timeout, which
sends a <nak>, signals the transmitter to start. Optionally,
the receiver could send a <nak> immediately, in case the sender
was ready. This would save the initial 10 second timeout. 
However, the receiver MUST continue to timeout every 10 seconds
in case the sender wasn't ready.
Once into a receiving a block, the receiver goes into a
one-second timeout for each character and the checksum. If the
receiver wishes to <nak> a block for any reason (invalid
header, timeout receiving data), it must wait for the line to
clear. See "programming tips" for ideas
Synchronizing: If a valid block number is received, it
will be: 1) the expected one, in which case everything is fine;
or 2) a repeat of the previously received block. This should
be considered OK, and only indicates that the receivers <ack>
got glitched, and the sender re-transmitted; 3) any other block
number indicates a fatal loss of synchronization, such as the
rare case of the sender getting a line-glitch that looked like
an <ack>. Abort the transmission, sending a <can>

---- 4C. SENDING PROGRAM CONSIDERATIONS.

While waiting for transmission to begin, the sender has
only a single very long timeout, say one minute. In the
current protocol, the sender has a 10 second timeout before
retrying. I suggest NOT doing this, and letting the protocol
be completely receiver-driven. This will be compatible with
existing programs.
When the sender has no more data, it sends an <eot>, and
awaits an <ack>, resending the <eot> if it doesn't get one. 
Again, the protocol could be receiver-driven, with the sender
only having the high-level 1-minute timeout to abort.

-------- 5. DATA FLOW EXAMPLE INCLUDING ERROR RECOVERY

Here is a sample of the data flow, sending a 3-block message.
It includes the two most common line hits - a garbaged block,
and an <ack> reply getting garbaged. <xx> represents the
checksum byte.

SENDER RECEIVER
times out after 10 seconds,
                        <--- <nak>
<soh> 01 FE -data- <xx> --->
                        <--- <ack>
<soh> 02 FD -data- xx   ---> (data gets line hit)
                        <--- <nak>
<soh> 02 FD -data- xx   --->
                        <--- <ack>
<soh> 03 FC -data- xx   --->
    (ack gets garbaged) <--- <ack>
<soh> 03 FC -data- xx   ---> <ack>
<eot>                   --->
                        <--- <ack>

-------- 6. PROGRAMMING TIPS.

* The character-receive subroutine should be called with a
parameter specifying the number of seconds to wait. The
receiver should first call it with a time of 10, then <nak> and
try again, 10 times.
After receiving the <soh>, the receiver should call the
character receive subroutine with a 1-second timeout, for the
remainder of the message and the <cksum>. Since they are sent
as a continuous stream, timing out of this implies a serious
like glitch that caused, say, 127 characters to be seen instead
of 128.

* When the receiver wishes to <nak>, it should call a "PURGE"
subroutine, to wait for the line to clear. Recall the sender
tosses any characters in its UART buffer immediately upon
completing sending a block, to ensure no glitches were mis-
interpreted.
The most common technique is for "PURGE" to call the
character receive subroutine, specifying a 1-second timeout,
and looping back to PURGE until a timeout occurs. The <nak> is
then sent, ensuring the other end will see it.

* You may wish to add code recommended by Jonh Mahr to your
character receive routine - to set an error flag if the UART
shows framing error, or overrun. This will help catch a few
more glitches - the most common of which is a hit in the high
bits of the byte in two consecutive bytes. The <cksum> comes
out OK since counting in 1-byte produces the same result of
adding 80H + 80H as with adding 00H + 00H.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线电影院国产精品| 精彩视频一区二区三区| 色综合色综合色综合 | 538在线一区二区精品国产| 亚洲综合成人在线视频| 91国内精品野花午夜精品| 亚洲欧洲中文日韩久久av乱码| 色先锋久久av资源部| 一区二区三区加勒比av| 在线电影一区二区三区| 美国av一区二区| 国产亚洲精品7777| 91一区二区三区在线播放| 亚洲成人中文在线| 欧美一区二区三区不卡| 国产成人av电影| 一区二区欧美国产| 欧美一区二区精品久久911| 国产精品伊人色| 中文字幕不卡在线| 91丝袜美腿高跟国产极品老师| 夜夜嗨av一区二区三区| 制服丝袜av成人在线看| 国产一区二区三区四区五区美女 | 天天综合天天做天天综合| 亚洲精品在线观看视频| 99久久综合色| 麻豆精品国产传媒mv男同| 国产精品国产三级国产普通话三级| 在线观看av一区| 国产成人综合网| 日韩在线一区二区三区| 国产精品久久久久一区| 欧美一级片在线看| 在线影院国内精品| 国产伦精品一区二区三区免费迷| 亚洲最大成人综合| 国产精品嫩草99a| 日韩一区二区在线观看视频播放| 成人性生交大片免费看中文网站| 日韩av网站免费在线| 亚洲欧洲日产国产综合网| 欧美成人性战久久| 欧美情侣在线播放| 99国产一区二区三精品乱码| 黑人巨大精品欧美黑白配亚洲| 亚洲一区av在线| 亚洲欧洲另类国产综合| 久久久久久久久久久黄色| 欧美高清精品3d| 色琪琪一区二区三区亚洲区| 国产精品一二三四五| 麻豆精品在线播放| 偷窥国产亚洲免费视频| 亚洲色大成网站www久久九九| 精品国产1区2区3区| 91精品国产91久久久久久一区二区| 91福利国产精品| 91麻豆国产精品久久| 波多野结衣亚洲一区| 国产成人8x视频一区二区| 黑人巨大精品欧美一区| 美女视频网站久久| 热久久一区二区| 日韩一区精品字幕| 首页国产丝袜综合| 青青青爽久久午夜综合久久午夜| 亚洲成人免费影院| 亚洲成人tv网| 天天免费综合色| 首页亚洲欧美制服丝腿| 日韩精品色哟哟| 免费精品视频在线| 久久精品国产在热久久| 麻豆精品精品国产自在97香蕉| 日本欧美一区二区| 麻豆精品在线播放| 韩国欧美国产一区| 国产91丝袜在线观看| 成人app网站| 色爱区综合激月婷婷| 欧美日韩一区二区三区视频| 欧美日韩久久一区| 日韩欧美在线不卡| 久久久久久9999| 国产日韩精品一区二区三区| 中文字幕乱码一区二区免费| 国产精品电影院| 亚洲一区二区三区国产| 午夜视黄欧洲亚洲| 久久99久久久久| av福利精品导航| 欧美午夜精品电影| 日韩欧美国产一区二区在线播放| 久久综合色婷婷| 国产精品乱子久久久久| 亚洲综合视频在线| 六月婷婷色综合| 99久免费精品视频在线观看| 欧美日韩一卡二卡三卡| 精品免费视频.| 中文字幕在线一区二区三区| 一区二区三区日本| 精品亚洲成a人| 色噜噜狠狠成人网p站| 欧美一级欧美一级在线播放| 欧美国产一区视频在线观看| 亚洲一区二区视频| 国产一区二区久久| 欧美亚洲一区二区三区四区| 精品欧美久久久| 一区二区三区日韩| 国产最新精品精品你懂的| a美女胸又www黄视频久久| 欧美丰满一区二区免费视频| 久久先锋资源网| 夜夜夜精品看看| 国产a区久久久| 666欧美在线视频| 中文字幕五月欧美| 精品亚洲aⅴ乱码一区二区三区| 色女孩综合影院| 久久久精品综合| 丝袜美腿一区二区三区| 大胆欧美人体老妇| 欧美高清一级片在线| 日本一区二区电影| 日韩vs国产vs欧美| 91丨porny丨蝌蚪视频| 日韩一级片在线播放| 亚洲日本韩国一区| 国产精品亚洲视频| 51精品秘密在线观看| 亚洲欧美色图小说| 成人综合在线观看| 精品日韩一区二区三区 | 91精品国模一区二区三区| 国产精品久久一卡二卡| 久久国产精品第一页| 欧美日韩黄色一区二区| 亚洲欧洲av在线| 国产精品66部| 欧美大片拔萝卜| 日本在线不卡一区| 色菇凉天天综合网| 亚洲人成精品久久久久| 国产成人午夜高潮毛片| 日韩精品一区二区三区视频| 亚洲动漫第一页| 欧洲一区二区三区在线| 中文字幕在线不卡| 成人亚洲一区二区一| 久久久av毛片精品| 国产真实乱对白精彩久久| 日韩视频在线永久播放| 污片在线观看一区二区| 欧美日韩在线播放一区| 亚洲国产日日夜夜| 91成人免费在线视频| 亚洲一区二区三区免费视频| 在线免费视频一区二区| 亚洲精品高清视频在线观看| 91天堂素人约啪| 亚洲免费观看在线观看| 99久久99久久久精品齐齐| 国产精品久久久久aaaa樱花| 成人教育av在线| 亚洲欧洲色图综合| 91久久精品一区二区三| 一区二区三区在线观看视频| 91黄色免费版| 亚洲大片在线观看| 欧美一区二区三区在| 精品一区二区久久| 国产拍揄自揄精品视频麻豆| 国产激情视频一区二区三区欧美 | 樱花草国产18久久久久| 在线精品视频小说1| 香蕉乱码成人久久天堂爱免费| 欧美性色综合网| 蜜臀99久久精品久久久久久软件| 日韩一区二区电影| 激情成人综合网| 国产精品天美传媒沈樵| 91麻豆国产香蕉久久精品| 香蕉久久一区二区不卡无毒影院 | 婷婷六月综合网| 日韩三区在线观看| 久久99国内精品| 国产精品美女一区二区三区| 91免费版在线| 午夜精品在线视频一区| 精品少妇一区二区三区在线播放| 国产不卡在线一区| 一区二区三区中文在线观看| 欧美一级二级在线观看| 高清国产一区二区三区| 亚洲国产成人av| 国产午夜精品久久久久久久 | 日韩理论片在线|