회원가입 ID/PW 찾기

1) 지식 창고는 본인이 작성한 콘텐츠(팁/노하우/리소스/강좌 등)을 무료 혹은 가상화폐인 납포인트를 통해 공유하는 공간입니다.
2) 본인이 작성한 콘텐츠에 대해서만 지식 창고에 등록할 수 있으며, 저작권에 위배되는 콘텐츠는 사전경고 없이 삭제될 수 있습니다.
3) 콘텐츠 구매 및 첨부파일 다운로드는 회원그룹 '연구원' 이상 가능하오니, 경험치를 쌓아 진급한 후에 이용 부탁드립니다.
4) 무료 콘텐츠의 본문은 구매절차 없이 즉시 이용할 수 있으며, 판매 납포인트가 있는 콘텐츠는 구매 후 이용할 수 있습니다.
5) 콘텐츠 판매에 따른 납포인트 수익은 지정한 비율(50%)에 따라 판매자에게 지급하며, 납포인트 수익을 통해 진급을 빨리할 수 있습니다.
6) 구매 후 평가를 하면 구매 납포인트의 20%를 돌려 드립니다.

콘텐츠 수 23
판매자 아크마 판매 납포인트 무료 평점 0점 / 총 0명 참여
INTRODUCTION
The PIC16F87X family of microcontrollers has the ability
to write to their own program memory. This feature
allows a small bootloader program to receive and write
new firmware into memory. This application note
explains how this can be implemented and discusses
the features that may be desirable.
In its most simple form, the bootloader starts the user
code running, unless it finds that new firmware should
be downloaded. If there is new firmware to be downloaded,
it gets the data and writes it into program memory.
There are many variations and additional features
that can be added to improve reliability and simplify the
use of the bootloader, some of which are discussed in
this application note.
The general operation of a bootloader is discussed in
the OPERATION section. Appendix A contains assembly
code for a bootloader developed for the PIC16F877
and key aspects of this bootloader are described in the
IMPLEMENTATION section.
For the purpose of this application note, the term “boot
code” refers to the bootloader code that remains permanently
in the microcontroller and the term “user
code” refers to the user’s firmware written into FLASH
memory by the boot code.
FEATURES
The more common features a bootloader may have are
listed below:
• Code at the Reset location.
• Code elsewhere in a small area of memory.
• Checks to see if the user wants new user code to
be loaded.
• Starts execution of the user code if no new user
code is to be loaded.
• Receives new user code via a communication
channel if code is to be loaded.
• Programs the new user code into memory.
OPERATION
The boot code begins by checking to see if there is new
user code to be downloaded. If not, it starts running the
existing user code. If there is new user code to be
downloaded, the boot code receives and writes the
data into program memory. There are many ways that
this can be done, as well as many ways to ensure reliability
and ease of use.
Integrating User Code and Boot Code
The boot code almost always uses the Reset location
and some additional program memory. It is a simple
piece of code that does not need to use interrupts;
therefore, the user code can use the normal interrupt
vector at 0x0004. The boot code must avoid using the
interrupt vector, so it should have a program branch in
the address range 0x0000 to 0x0003.
The boot code must be programmed into memory
using conventional programming techniques, and the
configuration bits must be programmed at this time.
The boot code is unable to access the configuration
bits, since they are not mapped into the program memory
space. Setting the configuration bits is discussed in
the next section.
In order for the boot code to begin executing the user
code, it must know where the code starts. Since the
boot code starts at the Reset vector, the user code cannot
start at this location. There are two methods for
placing the starting point of the user code.
One method is to use an ORG directive to force the user
code to start at a known location, other than the Reset
vector. To start executing the user code, the boot code
must branch to this fixed location, and the user code
must always use this same location as its start address.
An alternative method is to start the user code at the
normal Reset vector and require that the user code has
a goto instruction in the first four instructions to avoid
the interrupt vector. These four instructions can then be
relocated by the boot code and programmed into the
area of program memory used by the boot code. This
simplifies the development of code for use with the
bootloader, since the user code will run when programmed
directly into the chip without the boot code
present. The boot code must take care of paging and
banking so the normal Reset conditions apply before
executing the relocated code.

모르는 것이 무엇인지 스스로 정리하고 질문하는 습관을 가집시다.
무성의/광범위하거나 직접 해보지 않고 올리는 질문은 서로를 피곤하게 합니다.
질문쪽지는 사절이오니 게시판에 글을 남겨주세요. 그래야 다같이 공유할 수 있으니까요.

첨부

profile
초보태공 2008.10.10 11:42
부트로더 구현에 성공하셨나요?
profile
시나브로69 2017.06.24 16:42
좋은 자료 감사합니다.
search
List of Articles
번호 분류 제목 평점 포인트 판매자 등록일 구매수 조회 수
공지 공공의 목적으로 공유하고자 하는 소프트웨어는 '소프트웨어 자료실'에 업로드를 요청드립니다.
공지 구매후 평점 댓글을 남겨주시면 구매포인트의 20%를 돌려드립니다.
23 EDA Simulation OrCAD PSpice - 초급자용 [40] 무료 프리미엄 2007-11-04 0 2274
22 EDA Simulation orcad 파라미터 단축키 파일입니다. [10] 무료 웨라러브 2012-03-02 0 2300
21 EDA Simulation PSpice floating 문제 [7] 무료 Interrupter 2011-09-14 0 4365
20 EDA Simulation pspice 입문하시는 분을 위해 [21] 무료 가나초콜릿 2011-02-23 0 3795
19 EDA Simulation 온도에 따른 저항 (써미스터) 시뮬레이션 [6] 무료 ANCAT 2011-02-22 0 4777
18 EDA Simulation pspice에서 질 문 이요 [1] 무료 pigu45 2011-01-31 0 2955
17 EDA Simulation part 질문좀.. [1] 무료 pigu45 2011-01-31 0 2819
16 EDA Simulation 오류 제능력 밖이라서 문의드립니다. [1] 무료 쨍용 2010-12-22 0 3134
15 EDA Simulation 정말 간단한 질문이요..ㅠㅠ [2] 무료 쨍용 2010-11-30 0 2164
14 EDA Simulation pspice 디지털입력 질문이요~ 무료 cadi 2010-11-22 0 2198
13 EDA Simulation layout92 manual [2] 무료 정상까지 가보자! 2010-11-15 0 2329
12 EDA Simulation pspice 자료입니다. [2] 무료 TreeOfDream 2010-09-09 0 3469
11 EDA Simulation pspice 자료 입니다. [9] 무료 TreeOfDream 2010-06-30 0 2484
10 EDA Simulation pspice 라이브러리가이드 메뉴얼입니다. [3] 무료 LAZEX 2010-05-26 0 3349
9 EDA Simulation 전자제도이론.. [6] 무료 양자 2010-01-20 0 2728
8 EDA Simulation OrCAD PSpice 초보자 사용법이에요 [29] 무료 월간낚시 2009-11-30 0 5782
7 EDA Simulation orcad-pspice 메뉴얼 [8] 무료 쫑~ 2009-10-27 0 3180
6 EDA Simulation Orcad Pspice 입출력 설정 [8] 무료 프리미엄 2007-11-04 0 2189
5 EDA Simulation PSpice 사용법 #4 [13] 무료 라이언상병 2007-08-20 0 2118
4 EDA Simulation PSpice 유저가이드 [13] 무료 라이언상병 2007-08-20 0 1968
  • 인생은 짧고 예술은 길다.
    - 히포크라테스
  • * 납포인트 정보 *
  • 글 작성 : 3
  • 댓글 작성 : 1
저작권법에 위배되는 콘텐츠는 등록 불가하며, 저작물에 대한 권리는 저작자에게 있습니다.
Copyright 2006-2021 © hardwareis.com, All rights reserved.