Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

AN2635 Datasheet(PDF) 9 Page - Freescale Semiconductor, Inc

Part # AN2635
Description  On-Chip FLASH Programming Routines
Download  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN2635 Datasheet(HTML) 9 Page - Freescale Semiconductor, Inc

Back Button AN2635 Datasheet HTML 5Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 6Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 7Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 8Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 9Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 10Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 11Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 12Page - Freescale Semiconductor, Inc AN2635 Datasheet HTML 13Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 36 page
background image
How to Use the Routines
On-Chip FLASH Programming Routines, Rev. 4
Freescale Semiconductor
9
Example 2: Sending a Byte Serially
Example 2 shows how to send a byte ($55) serially on PTA0:
PutByte equ
$0381
;LB8 PutByte jump address
bclr 0,DDRA
;Configure port A bit 0 as an input
bclr 0,PTA
;Initialize data bit to zero PTA0=0
lda
#$55
;Load sent data $55 to A
jsr
PutByte
;Call PutByte routine
RDVRRNG
When using the RDVRRNG routine, the user must select one of the following function options:
Send-out option — Used to read a range of FLASH locations and to send the read data to a host
through PTA0 by using the PutByte routine.
Verify option — Used to read a range of FLASH locations and to verify the read data against the
DATA array.
Send-Out Option
If the accumulator (A) is initialized with $00 at the routine entry, the read data will be sent out serially
through PTA0. The communication baud rate is the same as the baud rate described in the PutByte
routine. When this option is selected, the PTA0 must be pulled up and configured as an input and the
PTA0 data bit must be initialized to 0.
Verify Option
If A is initialized with a non-zero value, the read data is verified against the DATA array for each byte of
FLASH and the DATA array is replaced by the data read from FLASH. If the data does not match the
corresponding value, the data read from FLASH can be confirmed in the DATA array. All data in the DATA
array must be in the zero page, but a range can be beyond a row size or a page size.
Carry (C) Bit and Checksum
The first and last addresses of the range to be read and/or verified are specified as parameters in
registers H:X and LADDR, respectively. In the verify option, the carry (C) bit of the condition code register
(CCR) is set if the data in the specified range is verified successfully against the data in the DATA array.
However when the send-out option is selected, the status of the C bit is meaningless because this
function does not include the verify operation. Both options calculate a checksum on data read in the
range. This checksum, which is the LSB of the sum of all bytes in the entire data collection, is stored in A
upon return from the function.
Interrupts are not masked. The COP is serviced in RDVRRNG. The first COP is serviced at 23 bus cycles
after this routine is called in the user software. However, the COP timeout might still occur in the send-out
option if the COP is configured for a short timeout period.


Similar Part No. - AN2635

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN2633 STMICROELECTRONICS-AN2633 Datasheet
529Kb / 48P
   STR91xFA low power management and power consumption
AN2639 STMICROELECTRONICS-AN2639 Datasheet
522Kb / 15P
   Soldering recommendations and package information for Lead-free ECOPACK microcontrollers
More results

Similar Description - AN2635

ManufacturerPart #DatasheetDescription
logo
Macronix International
MX10E80501 MCNIX-MX10E80501 Datasheet
1,010Kb / 88P
   On-chip Flash program memory with in-system programming
logo
Microchip Technology
PIC24F04KA200 MICROCHIP-PIC24F04KA200 Datasheet
207Kb / 26P
   Flash Programming Specifications
2010
PIC24F08KA101 MICROCHIP-PIC24F08KA101 Datasheet
727Kb / 48P
   Flash Programming Specifications
2008
logo
STMicroelectronics
PM0018 STMICROELECTRONICS-PM0018 Datasheet
158Kb / 10P
   ST7 Flash programming
AN1496 STMICROELECTRONICS-AN1496 Datasheet
240Kb / 17P
   Flash Programming / Reprogramming
logo
Microchip Technology
DSPIC33F MICROCHIP-DSPIC33F Datasheet
988Kb / 80P
   Flash Programming Specification
2007
logo
ATMEL Corporation
AT89C5131 ATMEL-AT89C5131_14 Datasheet
2Mb / 5P
   32-Kbyte On-chip Flash In-System Programming through USB or UART
logo
STMicroelectronics
AN4035 STMICROELECTRONICS-AN4035 Datasheet
582Kb / 42P
   Flash programming through
logo
Microchip Technology
PIC18LF2XK22 MICROCHIP-PIC18LF2XK22 Datasheet
545Kb / 42P
   Flash Memory Programming Specification
01/05/10 2010
PIC24FJ16GA004-EPT MICROCHIP-PIC24FJ16GA004-EPT Datasheet
681Kb / 52P
   PIC24FJXXXGA0XX Flash Programming Specification
01/02/08
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 33 34 35 36


Datasheet Download

Go To PDF Page


Link URL




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

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   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