| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
H8/3045 Datasheet(PDF) 636 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3045 Datasheet(HTML) 636 Page - Renesas Technology Corp |
|
636 / 905 page ![]() Section 19 Flash Memory (H8/3048F: Dual Power Supply (VPP = 12 V)) Rev. 7.00 Sep 21, 2005 page 612 of 878 REJ09B0259-0700 Sample Program for Erasing One Block: This program uses the following registers. R0: Prewrite-verify and erase-verify fail counter ER1: Stores address used in prewrite ER2: Stores address used in prewrite and erase-verify ER3: Stores address used in erase-verify ER4: Timing loop counter R5: Sets appropriate registers R6: Sets appropriate registers The values of #a, #c, #d, #e, #f, #g, and #h, in the program depend on the clock frequency. They can be calculated as indicated in tables 19.9 and 19.10. FLMCR: .EQU FFFF40 EBR1: .EQU FFFF42 EBR2: .EQU FFFF43 TCSR: .EQU FFFFA8 ; #BLKSTR is top address of block to be erased ; #BLKEND is last address of block to be erased MOV.L #BLKSTR:32, ER1 ; ER1: top address of block to be erased MOV.L #BLKEND:32, ER2 ; ER2: last address of block to be erased ; Execute prewrite PREWRT: MOV.W #g, R4 ; Set wait counter MOV.W #4140, R6 ; MOV.B R6L, @FLMCR:8 ; Set VPPE bit LOOPR0: DEC.W #1, R4 ; BPL LOOPR0 ; ; SET EBR1 or EBR2 bit of block to be erased MOV.B #**, R5H ; MOV.B R5H, @EBR* ; Set EBR* PREWRN: SUB.B R0H, R0H ; R0: prewrite-verify fail count MOV.W #a, E4 ; Set initial prewrite loop counter value PREWRS: MOV.B #00, R5H ; Write #00 data MOV.B R5H, @ER1 ; MOV.W #A579, R5 ; Start watchdog timer MOV.W R5, @TCSR:16 ; MOV.W E4, R4 ; Set prewrite loop counter MOV.W #4140, R6 ; |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| 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 |