Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

ST10F280 Fiches technique(PDF) 44 Page - STMicroelectronics

No de pièce ST10F280
Description  16-bit MCU with MAC unit, 512 Kbyte Flash memory and 18 Kbyte RAM
PDF  239 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST10F280 Fiches technique(HTML) 44 Page - STMicroelectronics

Back Button ST10F280_12 Datasheet HTML 40Page - STMicroelectronics ST10F280_12 Datasheet HTML 41Page - STMicroelectronics ST10F280_12 Datasheet HTML 42Page - STMicroelectronics ST10F280_12 Datasheet HTML 43Page - STMicroelectronics ST10F280_12 Datasheet HTML 44Page - STMicroelectronics ST10F280_12 Datasheet HTML 45Page - STMicroelectronics ST10F280_12 Datasheet HTML 46Page - STMicroelectronics ST10F280_12 Datasheet HTML 47Page - STMicroelectronics ST10F280_12 Datasheet HTML 48Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 44 / 239 page
background image
Internal Flash memory
ST10F280
44/239
Doc ID 8673 Rev. 3
Example 2: Performing a Program Word command
We assume that in the initialization phase the lowest 32K Bytes of Flash memory (sector 0)
have been mapped to segment 1.The data to be written is loaded in register R13, the
address to be programmed is loaded in register R11/R12 (segment number in R11,
segment offset in R12).
MOV R5, #01554h
;load auxilary register R5 with command address
;(used in command cycle 1)
MOV R6, #02AA8h
;load auxilary register R6 with command address
;(used in command cycle 2)
SXCT DPPO, #08h
;push data page pointer 0 and load it to point to
;segment 2
MOV R7, #0A8h
;load register R7 with 1st CI enable command
MOV [R5], R7
;command cycle 1
MOV R7, #054h
;load register R7 with 2cd CI enable command
MOV [R6], R7
;command cycle 2
MOV R7, #0A0h
;load register R7 with Program Word command
MOV [R5], R7
;command cycle 3
POP DPP0
;restore DPP0: following addressing to the Flash
;will use EXTended instructions
;R11 contains the segment to be programmed
;R12 contains the segment offset address to be
;programmed
;R13 contains the data to be programmed
EXTS R11, #1
;use EXTended addressing for next MOV instruction
MOV [R12], R13
;command cycle 4: the EPC starts execution of
;Programming Command
Data_Polling:
EXTS R11, #1
;use EXTended addressing for next MOV instruction
MOV R7, [R12]
;read Flash Status register (FSB) in R7
MOV R6, R7
;save it in R6 register
;Check if FSB.7 = Data.7 (i.e. R7.7 = R13.7)
XOR R7, R13
JNB R7.7, Prog_OK
;Check if FSB.5 = 1 (Programming Error)
JNB R6.5, Data_Polling
;Programming Error: verify is Flash programmed
;data is OK
EXTS R11, #1
;use EXTended addressing for next MOV instruction
MOV R7, [R12]
;read Flash Status register (FSB) in R7
;Check if FSB.7 = Data.7
XOR R7, R13
JNB R7.7, Prog_OK
;Programming failed: Flash remains in Write
;Operation.
;To go back to normal Read operations, a Read/Reset



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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
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