Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN247 Datasheet(PDF) 1 Page - Microchip Technology

Part # AN247
Description  A CAN Bootloader for PIC18F CAN Microcontrollers
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

AN247 Datasheet(HTML) 1 Page - Microchip Technology

  AN247 Datasheet HTML 1Page - Microchip Technology AN247 Datasheet HTML 2Page - Microchip Technology AN247 Datasheet HTML 3Page - Microchip Technology AN247 Datasheet HTML 4Page - Microchip Technology AN247 Datasheet HTML 5Page - Microchip Technology AN247 Datasheet HTML 6Page - Microchip Technology AN247 Datasheet HTML 7Page - Microchip Technology AN247 Datasheet HTML 8Page - Microchip Technology AN247 Datasheet HTML 9Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 1 / 32 page
background image
 2003 Microchip Technology Inc.
DS00247A-page 1
AN247
INTRODUCTION
Among the many features built into Microchip’s
Enhanced FLASH Microcontroller devices is the capa-
bility of the program memory to self-program. This very
useful feature has been deliberately included to give
the user the ability to perform bootloading operations.
Devices like the PIC18F458 are designed with a desig-
nated “boot block”, a small section of protectable pro-
gram memory allocated specifically for bootload
firmware.
This application note demonstrates a simple boot-
loader implementation for the PIC18F families of micro-
controllers with a CAN module. The goals of this
implementation are to stress maximum performance
and functionality, while requiring a minimum of code
space. For users developing CAN enabled systems, it
provides a low level framework that can be used with
higher level network protocols to develop more
complex and custom-tailored systems.
CONSIDERATIONS FOR FIELD
PROGRAMMING OVER THE CAN BUS
The combination of FLASH technology and robust net-
work communication capability in a single device
makes over-the-network programmability a very desir-
able option. However, this makes bootloading on a
CAN bus network a very different challenge from more
typical uses, such as using a bootloader to program a
single FLASH device in isolation. Let’s consider some
of the key issues in over-the-network programming.
Single or Group Programming
Providing bootloading capability over a CAN bus net-
work takes some forethought. For example, a system
with a number of nodes may have identical firmware in
several nodes. Since every node on a CAN bus can
see all passing data, it may be more efficient to
program these identical nodes in a single pass.
However, in other cases where a node or many nodes
are unique, it may only be necessary to open
peer-to-peer communications to program the device.
This can be the simplest programming system,
because the programming source could contain all the
intelligence and freely manipulate the target memory.
The drawback to this is a lack of efficiency, as directly
manipulating the target memory and manually verifying
data takes significant time on the CAN bus.
To make the operation more efficient, the programming
target could be given some intelligence, like self-
verification.
This
would
make
communications
unidirectional, essentially cutting the time on the CAN
bus in half.
Overall, the best savings is to design all the nodes in
the system with similar, modular firmware. Each node
could then use only those modules required for its task,
but the entire group of nodes could be updated simul-
taneously. The sacrifice here is program memory over-
head, since some nodes may have resident firmware
that is not used.
Programming a Running System
An interesting situation is bootloading in an active and
functioning system. In this instance, one or more of the
nodes are taken off-line to update their firmware, yet
the functionality of the entire system is not completely
disabled. This, of course, requires that the target node
or nodes have some functional independence from
other parts of the networked system.
There are priority issues to contend with when pro-
gramming in an active system. For example, what pri-
ority can be given to the bootloader without affecting
the critical communications in the system? If higher pri-
ority is given to nodes running the bootloader than
other nodes running their normal application, then it
may take time for data to be received when data is
being streamed to the programming target. Thus, criti-
cal systems that require relatively low latency for data
transmission or reception may fail to function as
expected. In the opposite situation, assigning the pro-
gramming target with a priority that is too low could lead
to extremely long programming times, simply because
the programming source and target are continually
waiting for an IDLE bus to pass data.
In an active network, planning is necessary to provide
sufficient bus time for programming. One solution is
simply to give relatively high priority to bootloader pro-
gramming operations, then design the programming
source to “inject” time for other applications while
streaming data on the CAN bus. Thus, bus time is
always available and controlled by the programming
source.
Author:
Ross M. Fosler
Microchip Technology Inc.
A CAN Bootloader for PIC18F CAN Microcontrollers


Similar Part No. - AN247

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN2471 STMICROELECTRONICS-AN2471 Datasheet
307Kb / 12P
STMAV335 has three sets
13-Mar-2007
AN2472 STMICROELECTRONICS-AN2472 Datasheet
143Kb / 11P
STMAV340 analog video switch
14-Mar-2007
AN2474 STMICROELECTRONICS-AN2474 Datasheet
145Kb / 7P
TS4995 1.2W fully differential audio power amplifier with selectable
Jan-2007
AN2475 STMICROELECTRONICS-AN2475 Datasheet
1Mb / 37P
STR91xFAxxx in-application programming using UART
01-Sep-2008
AN2476 STMICROELECTRONICS-AN2476 Datasheet
665Kb / 49P
STR75x low power modes
09-Jul-2007
More results

Similar Description - AN247

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
T89C51CC02 ATMEL-T89C51CC02_03 Datasheet
419Kb / 29P
CAN Microcontrollers
T89C51CC01 ATMEL-T89C51CC01_06 Datasheet
364Kb / 32P
CAN Microcontrollers
T89C51CC02 ATMEL-T89C51CC02_03 Datasheet
313Kb / 29P
CAN Microcontrollers
AT89C51CC03 ATMEL-AT89C51CC03_03 Datasheet
723Kb / 32P
CAN Microcontrollers
logo
Maxim Integrated Produc...
DS80C410 MAXIM-DS80C410 Datasheet
1Mb / 102P
Network Microcontrollers with Ethernet and CAN
REV: 010705
logo
ATMEL Corporation
T89C51CC02_0312 ATMEL-T89C51CC02_0312 Datasheet
419Kb / 35P
CAN Microcontrollers
AT89C51CC03 ATMEL-AT89C51CC03_08 Datasheet
316Kb / 32P
CAN Microcontrollers
logo
Maxim Integrated Produc...
DS80C410 MAXIM-DS80C410_09 Datasheet
1Mb / 102P
Network Microcontrollers with Ethernet and CAN
Rev 4; 6/09
logo
ATMEL Corporation
T89C51CC02 ATMEL-T89C51CC02_10 Datasheet
290Kb / 29P
CAN Microcontrollers
logo
STMicroelectronics
AN3154 STMICROELECTRONICS-AN3154 Datasheet
638Kb / 34P
CAN protocol used in the STM32 bootloader
02-May-2014
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com