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

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

?? bootldr.txt

?? pic單片機例程
?? TXT
字號:
PIC16F87x(A) BOOT LOADER v3.01A Copyright (C)2005 HI-TECH Software.
Freely distributable.

Included in this package is an implementation of a bootloader for
the PIC16 flash devices.

Introduction
############

The Microchip PIC16F87x(A) processors are able to write to their own program 
memory while executing from it. By taking advantage of this fact, a 
bootloader program can be designed to accept new code via the serial 
port (or other method) and re-program itself.

On startup, the bootloader code is the first to execute. The bootloader will
transmit a count-down on the serial port. During this time the bootloader is
awaiting to recieve a response on the serial port. Sending a character to the 
serial port during the count-down will indicate to the device that the user
wishes to engage the bootloader facility and download a new program. If so
a prompt will be displayed and the new program may now be transferred
to the device via the serial connection.

If the user does not respond to the processor before the count-down expires,
the bootloader facility will not be engaged and the processor will begin
to execute a previously downloaded program.

If there has been no response from the user, and the device was previously
unprogrammed, the bootloader countdown will simply restart.

How it Works
############

So as to maximize the amount of available program memory, the bootloader 
has been designed to occupy less than 100H words.

The bootloader code executes before any user program. If it is given a program to
download during its countdown, it will write the program code to the device's flash
memory. It is assumed that the program code being downloaded is an INTEL hex file
which avoids the address ranges occupied by the bootloader (the last 100H
words of program memory).

The hex file is read by the bootloader program and stores the data in the according
memory region: either EEPROM data or flash memory. Configuration and ID
location words are ignored.


Microchip PIC16F87x(A) memory map with the bootloader installed

     Address
        0       |--------------------------|
               	| Reset jumps to bootloader|	
        0004    |--------------------------| 
               	|                          |
               	|                          |
        00FF    |                          |
               	|                          |
               	|                          |
               	|                          |
               	|                          |
               	|      Program space       |
               	|      available for       |	<--- Available space for user programs
               	|   downloaded programs    |
               	|                          |
               	|                          |
               	|                          |
               	|                          |
               	|--------------------------|
               	|       Bootloader         |
        Flash   |                          |
        TOP     |--------------------------|	<--- Top of flash memory is device specific


        0       |--------------------------|
               	|                          |	
               	|       Data EEPROM        |	<--- Data EEPROM size is device specific
        EEPROM  |                          |
        TOP     |--------------------------|



Any program locatations of the downloaded program that would overwrite the
bootloader will be ignored. This is to ensure the integrity of the
bootloader during its execution.

Compiling the Bootloader
#######################

The source code for the bootloader must be compiled prior to download into the
target device. Typical command lines used to compile the bootloader are:

picc --chip=16F877a bootldr.c --ROM=1F00-1FFF
or
picc --chip=16F877 bootldr.c -DVERBOSE --ROM=1E80-1FFF
to put the bootloader in verbose mode - prints a dot for each hex record read.
or
picc --chip=16F874A bootldr.c -DVERBOSE=2 --ROM=E80-FFF
to put the bootloader in a debug mode - all data is echoed back to the terminal

The bootloader can be put into modes that are more informative if the symbol
VERBOSE is defined when compiling the bootloader source code. However, using the
bootloader in these modes will consume more program memory.

The --ROM option causes the bootloader to be linked at the address specified.
Below is a list of addresses to use depending on which processor is being
used and which mode is required:

=====================================================================
| Processor | Normal | Verbose | Normal with ICD | Verbose with ICD |
=====================================================================
| 16F877    | 1F00   | 1E80    | 1E00            | 1D80             |
---------------------------------------------------------------------
| 16F877A   | 1F00   | 1E80    | 1E00            | 1D80             |
---------------------------------------------------------------------
| 16F876    | 1F00   | 1E80    | 1E00            | 1D80             |
---------------------------------------------------------------------
| 16F876A   | 1F00   | 1E80    | 1E00            | 1D80             |
---------------------------------------------------------------------
| 16F874    | F00    | E80     | E00             | D80              |
---------------------------------------------------------------------
| 16F874A   | F00    | E80     | E00             | D80              |
---------------------------------------------------------------------
| 16F873    | F00    | E80     | E00             | D80              |
---------------------------------------------------------------------
| 16F873A   | F00    | E80     | E00             | D80              |
---------------------------------------------------------------------
| 16F871    | 700    | 680     | 600             | 580              |
---------------------------------------------------------------------
| 16F870    | 700    | 680     | 600             | 580              |
=====================================================================

The above information can also be obtained from the BOOT_START define
located in the bootloader's header file.

Compiling Programs for Download
############################### 

When compiling a program to be downloaded via this bootloader, the following
command line options should be added to the link stage:
 --runtime=+download
 --ROM=default,-XXX-1FFF
Where XXX is the start of the bootloader code (from table above).

The --runtime option will condition the data in the hexfile so that it is
optimal for bootloader to process.
The --ROM option is to ensure that the new application does not try to reside
in the same memory location as the bootloader.

Downloading Programs
####################

Once the bootloader itself has been downloaded into the processor, there is no
special program required to operate this bootloader. Any basic serial
communications program (such as HyperTerminal) will be sufficient.

By default the data trasfer rate is 2400 Bits per second. This again can be
changed, by modifying the BAUD definition in bootldr.h.

Note: The bootloader uses XON/XOFF software flow control for receiving the
downloaded program. Be sure you have this turned on in your terminal program.

Basic flowchart to describe bootloader operation
################################################

[START]
     |
     v
[init comms and device]
     |
     v
<Wait for user response>----> [EXIT: execute existing code!]
     |responded         no response
     |
     v
[Await incoming hex record] <-------------------------+-------------+
     |                                                |             |
     v                                                |             |
<hex record: EOF?>----> [EXIT:execute new program!]   |             |
     |             yes                                |             |
     | no                                             |             |
     |                                                |             |
     v                                                |             |
[data record]                                         |             |
     |                                                |yes          |
     v                                                |             |
<EEPROM/flash?>----> [select flash]--> <bootloader threatened?>--> [Write!]
     |         flash                                           no   |
     |EE                                                            |
     |                                                              |
     v                                                              |
  [select EE]-------------------------------------------------------+



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天堂av在线一区| 91同城在线观看| 成人av网站免费| 精品婷婷伊人一区三区三| 久久一区二区三区国产精品| 亚洲三级免费观看| 国内精品久久久久影院薰衣草| 99久久精品国产精品久久| 欧美成人免费网站| 亚洲综合清纯丝袜自拍| 粉嫩av亚洲一区二区图片| 777色狠狠一区二区三区| 日韩码欧中文字| 国产精品一区在线观看你懂的| 欧美日韩三级在线| 一区二区三区不卡在线观看| 成人免费av在线| 精品福利视频一区二区三区| 午夜精品福利一区二区蜜股av | 成人黄色软件下载| 欧美成人精品高清在线播放 | 国产精品每日更新| 国产在线精品一区在线观看麻豆| 欧美日韩高清一区二区三区| 亚洲桃色在线一区| 99久久综合精品| 中文字幕乱码久久午夜不卡 | 日韩av一区二区在线影视| 91久久人澡人人添人人爽欧美 | 日韩精品一区二区三区在线播放| 洋洋成人永久网站入口| 色综合色综合色综合色综合色综合 | 日韩午夜精品电影| 日本成人中文字幕在线视频| 91麻豆精品国产91久久久使用方法| 成人污视频在线观看| 久久久99久久| 国产成人av一区| 国产精品无码永久免费888| 波多野结衣精品在线| 最新国产成人在线观看| 色哟哟精品一区| 无码av免费一区二区三区试看 | 99re热视频这里只精品| 国产精品成人在线观看| 99久久精品国产导航| 一片黄亚洲嫩模| 欧美人与性动xxxx| 捆绑调教美女网站视频一区| 日韩精品一区二区在线观看| 国产精品99久久久| 中文字幕一区在线| 精品视频一区二区三区免费| 免费成人在线播放| 国产亚洲成aⅴ人片在线观看| 成人av在线网站| 亚洲一区二区四区蜜桃| 日韩欧美国产麻豆| 国产1区2区3区精品美女| 亚洲精品国产高清久久伦理二区| 亚洲乱码日产精品bd| 欧美日韩mp4| 国产一区二区三区黄视频 | 精品日韩av一区二区| 国产一区二区免费看| 亚洲三级小视频| 欧美一区二区人人喊爽| 国产成人av自拍| 亚洲国产aⅴ天堂久久| 26uuu亚洲| 色综合一区二区三区| 日本特黄久久久高潮| 欧美高清一级片在线观看| 欧美在线视频不卡| 国产精品一二二区| 亚洲一线二线三线视频| 精品av久久707| 在线观看免费视频综合| 精品在线免费观看| 亚洲精品视频在线观看免费| 日韩一区二区视频| 91色乱码一区二区三区| 男女视频一区二区| 亚洲精品精品亚洲| 欧美激情一区二区三区四区| 欧美二区三区91| 成人av资源在线| 国内精品伊人久久久久av影院| 亚洲精品欧美在线| 国产精品免费视频网站| 正在播放亚洲一区| 色综合久久久久久久| 国产精品一区二区无线| 亚洲成人av一区二区三区| 亚洲国产高清在线观看视频| 在线综合+亚洲+欧美中文字幕| 粉嫩aⅴ一区二区三区四区五区| 蜜臀99久久精品久久久久久软件| 一区二区三国产精华液| 日韩理论片一区二区| 日本一区免费视频| 精品久久国产字幕高潮| 日韩欧美在线网站| 欧美男生操女生| 日本大香伊一区二区三区| 色综合久久综合网97色综合| 丁香六月久久综合狠狠色| 国产精品资源站在线| 久草精品在线观看| 国内外精品视频| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲va欧美va人人爽午夜 | 色婷婷久久久久swag精品| 大陆成人av片| 99这里只有精品| 99热99精品| 色屁屁一区二区| 91精品福利在线| 91久久精品一区二区二区| 色久综合一二码| 欧美色图激情小说| 欧美色区777第一页| 亚洲免费在线看| 亚洲人一二三区| 亚洲国产中文字幕在线视频综合| 亚洲人精品一区| 亚洲一区二区三区四区的| 亚洲一区二区三区爽爽爽爽爽| 亚洲高清免费在线| 日韩1区2区日韩1区2区| 久久精品国产久精国产爱| 久久精品国产77777蜜臀| 国产一本一道久久香蕉| 成人性色生活片| 色婷婷激情一区二区三区| 欧美日韩在线直播| 日韩亚洲欧美中文三级| 国产日韩欧美综合在线| 亚洲天堂免费在线观看视频| 一区二区在线观看免费| 日韩成人精品视频| 国产在线看一区| 色婷婷狠狠综合| 日韩三区在线观看| 国产精品国产馆在线真实露脸| 一区二区三区四区乱视频| 日韩国产精品久久久| 国产激情精品久久久第一区二区 | 久久精品一区二区三区不卡| 国产精品美女www爽爽爽| 亚洲成人三级小说| 国产乱淫av一区二区三区 | 一区二区三区欧美日韩| 奇米影视一区二区三区| 99久久婷婷国产综合精品电影 | 国产99精品国产| 在线视频亚洲一区| 精品成人一区二区三区| 136国产福利精品导航| 日本不卡123| 91网站黄www| 精品少妇一区二区三区免费观看| 最新热久久免费视频| 美女看a上一区| 91天堂素人约啪| 久久亚洲一区二区三区明星换脸| 亚洲免费电影在线| 国产一区二区三区四区五区入口| 91福利精品视频| 国产精品你懂的在线欣赏| 日本vs亚洲vs韩国一区三区二区| 99视频在线精品| 久久―日本道色综合久久| 首页欧美精品中文字幕| 99天天综合性| 日本一区二区不卡视频| 美国毛片一区二区| 欧美人妖巨大在线| 亚洲乱码国产乱码精品精小说 | 日韩国产成人精品| 91亚洲精品一区二区乱码| 久久综合国产精品| 视频一区视频二区在线观看| 色综合久久中文字幕综合网| 国产精品午夜久久| 国产高清成人在线| 日韩精品中文字幕在线不卡尤物| 亚洲综合一区二区精品导航| 成人精品gif动图一区| 久久综合九色综合97婷婷女人| 日产国产高清一区二区三区| 欧美在线制服丝袜| 有码一区二区三区| 91浏览器入口在线观看| 成人欧美一区二区三区在线播放| 国产91丝袜在线播放| 国产欧美一区二区三区沐欲| 国产麻豆精品在线| 久久精品亚洲乱码伦伦中文| 国产主播一区二区三区|