| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
H8/3045 Datasheet(PDF) 631 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3045 Datasheet(HTML) 631 Page - Renesas Technology Corp |
|
631 / 905 page ![]() Section 19 Flash Memory (H8/3048F: Dual Power Supply (VPP = 12 V)) Rev. 7.00 Sep 21, 2005 page 607 of 878 REJ09B0259-0700 Sample Program for Programming One Byte: This program uses the following registers. R0: Program-verify fail counter R1: Program-verify timing loop counter ER2: Stores the address to be programmed as long word data. Valid addresses are H'00000000 to H'0001FFFF. R3H: Stores data to be programmed as byte data R4: Sets and clears TCSR and FLMCR E4: Stores the initial program loop counter value R5: Clears FLMCR E5: Stores the program loop counter value Arbitrary data can be programmed at an arbitrary address by setting the address in ER2 and the data in R3H. The values of #a, #b, and #g depend on the clock frequency. They can be calculated as indicated under table 19.9. FLMCR: .EQU FFFF40 EBR1: .EQU FFFF42 EBR2: .EQU FFFF43 TCSR: .EQU FFFFA8 PRGM: MOV.W #0001, R0 ; Program-verify fail count MOV.W #g, R1 ; Set program loop counter MOV.W #4140, R4 ; MOV.B R4L, @FLMCR:8 ; Set VPPE bit LOOP0: DEC.W #1, R1 ; BPL LOOP0 MOV.B #**, R0H ; MOV.B R0H, @EBR*:8 ; Set EBR* MOV.B R3H, @ER2 ; Dummy write MOV.W #a, E4 ; Set initial program loop counter value PRGMS: MOV.W #A579, R4 ; Start watchdog timer MOV.W R4, @TCSR:16 ; MOV:W E4, E5 ; Set program loop counter MOV.W #4140, R4 ; MOV.B R4H, @FLMCR:8 ; Set P bit LOOP1: DEC.W #1, E5 ; Program BPL LOOP1 ; |
|
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 |