| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
H8/3045 Datasheet(PDF) 641 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3045 Datasheet(HTML) 641 Page - Renesas Technology Corp |
|
641 / 905 page ![]() Section 19 Flash Memory (H8/3048F: Dual Power Supply (VPP = 12 V)) Rev. 7.00 Sep 21, 2005 page 617 of 878 REJ09B0259-0700 Sample Program for Erasing Multiple Blocks: This program uses the following registers. R0, R6: Specifies blocks to be erased (set as explained below) R1H: Prewrite-verify fail counter R1L: Used to test bits 0 to 15 of R0 ER2: Specifies address where address used in prewrite and erase-verify is stored ER3: Stores address used in prewrite and erase-verify ER4: Stores address used in prewrite and erase-verify ER5: Sets appropriate registers E0, E1: Timing loop counter E6: Erase-verify fail counter Arbitrary blocks can be erased by setting bits in R6. A bit map of R6 and an example setting for erasing specific blocks are shown next. LB7 LB6 LB5 LB4 LB3 LB2 LB1 LB0 SB7 SB6 SB5 SB4 SB3 SB2 SB1 SB0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit R6 Corresponds to EBR1 Corresponds to EBR2 Example: to erase blocks LB2, SB7, and SB0 LB7 LB6 LB5 LB4 LB3 LB2 LB1 LB0 SB7 SB6 SB5 SB4 SB3 SB2 SB1 SB0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit R6 Corresponds to EBR1 Corresponds to EBR2 Setting 0 0 00 0 1 00 1 0 00 0 0 0 1 R6 is set as follows: MOV.W #0481, R6 MOV.W R6, @EBR1 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. For #RAMSTR in the program, substitute the starting destination address in RAM, to be used when this program is moved from flash memory into RAM. |
|
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 |