Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1302 Datasheet(PDF) 4 Page - Microchip Technology

Part # AN1302
Description  An I2C??Bootloader for the PIC16F1XXX Enhanced Core
Download  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

AN1302 Datasheet(HTML) 4 Page - Microchip Technology

  AN1302 Datasheet HTML 1Page - Microchip Technology AN1302 Datasheet HTML 2Page - Microchip Technology AN1302 Datasheet HTML 3Page - Microchip Technology AN1302 Datasheet HTML 4Page - Microchip Technology AN1302 Datasheet HTML 5Page - Microchip Technology AN1302 Datasheet HTML 6Page - Microchip Technology AN1302 Datasheet HTML 7Page - Microchip Technology AN1302 Datasheet HTML 8Page - Microchip Technology  
Zoom Inzoom in Zoom Outzoom out
 4 / 8 page
background image
AN1302
DS01302A-page 4
 2009 Microchip Technology Inc.
FIRMWARE FUNCTION
DESCRIPTIONS
Among the functions of the bootloader firmware, some
of them are more important:
do_i2c_tasks
: This function services all the I2C
related events. The event decoding is based on the
SSPIF flag and the SSPSTAT register.
flash_memory read
: This function takes a 16-bit
value as a address parameter and returns the data
read from Flash memory at the specified location.
flash_memory_write
: This function has two param-
eters. The first one is a 16-bit value as an Address
Pointer. Please note that the address must be properly
aligned to an 8 word boundary. The second parameter
is a pointer to buffer containing the data being written.
It does not return any value (void).
flash_memory_erase
: Performs an erase operation
starting with the address specified as a parameter. 32
instruction words are erased in a row and the specified
address must be aligned to a 32 word boundary.
service_isr
: This function performs the interrupt for-
warding feature. It is implemented as a GOTO instruc-
tion. For more information see the following section.
INTERRUPT FORWARDING
The PIC16F1XXX enhanced core has the interrupt vec-
tor at 0x0004. This address is located in the area where
the bootloader firmware is located. To maintain the
interrupt functionality it is required that the Interrupt
Service Routine (ISR) be relocated at a different
address, in the application segment. In the bootloader
code, at the interrupt vector location ( 0x0004), a GOTO
instruction is present. The Interrupt Service Routine is
contained in the application code. The application code
is shifted by 0x200, leaving room for the bootloader in
the lower part of the Flash memory. It will also contain
the Interrupt Service Routine at 0x0204. The boot-
loader code will contain a "GOTO 0x0204" instruction.
When an interrupt occurs, the program counter ( PC)
jumps to 0x0004 in the bootloader segment. At this
address, the "GOTO 0x0204" instruction will cause the
PC to jump to 0x0204 in the application segment,
where the Interrupt Service Routine is located (see
Figure 1).
Please
notice
that
the
PIC16F1XXX
enhanced core features Automatic Context Saving.
The interrupt latency will be increased by the GOTO
instruction execution time. See the example demo
application(s) for more details.
MULTIPROCESSOR SYSTEM
Since the proposed bootloader uses a standard I2C
protocol, the target microcontroller can be interfaced
with a larger microcontroller having more processing
power (such as a main processor in a multiprocessor
system). Several such devices can be connected in
parallel on the I2C bus, each slave device having its
own address (see Figure 2).
FIGURE 2:
MULTIPLE SLAVE DEVICES
CONNECTED TO THE SAME
BUS


Similar Part No. - AN1302

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN1300 STMICROELECTRONICS-AN1300 Datasheet
83Kb / 9P
   L6598 BASED 12V/3A RESONANT APPLICATION
AN1301 STMICROELECTRONICS-AN1301 Datasheet
160Kb / 8P
   SINGLE PORT FAST ETHERNET TRANSCEIVER
More results

Similar Description - AN1302

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN4221 STMICROELECTRONICS-AN4221 Datasheet
663Kb / 51P
   I2C protocol used in the STM32 bootloader
AN3262 STMICROELECTRONICS-AN3262 Datasheet
1Mb / 27P
   Using the over-the-air bootloader with STM32W108 devices
AN3155 STMICROELECTRONICS-AN3155 Datasheet
1Mb / 37P
   USART protocol used in the STM32 bootloader
AN3154 STMICROELECTRONICS-AN3154 Datasheet
638Kb / 34P
   CAN protocol used in the STM32 bootloader
AN4286 STMICROELECTRONICS-AN4286 Datasheet
555Kb / 38P
   SPI protocol used in the STM32 bootloader
logo
Vitesse Semiconductor C...
VSC055 VITESSE-VSC055 Datasheet
408Kb / 2P
   Enhanced I2C Backplane Controller
logo
STMicroelectronics
AN2972 STMICROELECTRONICS-AN2972 Datasheet
1Mb / 25P
   Designing an antenna for the M24LRxx-R
logo
List of Unclassifed Man...
7850E ETC2-7850E Datasheet
1Mb / 11P
   Preparing an Image for the Universal Communicator
logo
STMicroelectronics
AN3156 STMICROELECTRONICS-AN3156 Datasheet
400Kb / 26P
   USB DFU protocol used in the STM32 bootloader
logo
ATMEL Corporation
AT90USB128X ATMEL-AT90USB128X Datasheet
194Kb / 28P
   USB DFU Bootloader
More results


Html Pages

1 2 3 4 5 6 7 8


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   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