| Electronic Components Datasheet Search |
|
HD6433644R Datasheet(PDF) 150 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
HD6433644R Datasheet(HTML) 150 Page - Renesas Technology Corp |
|
150 / 549 page ![]() Section 6 ROM Rev. 6.00 Sep 12, 2006 page 130 of 526 REJ09B0326-0600 Sample Program for Programming One Byte This program uses the following registers: R0H: Used for erase block specification. R1H: Stores programming data. R1L: Stores read data. R3: Stores the programming address. Valid address specifications are H'0000 to H'EF7F. R4: Used for program and program-verify loop counter value setting. Also stores register set values. R5: Used for program loop counter value setting. R6L: Used for the program-verify fail count. Arbitrary data can be programmed at an arbitrary address by setting the R3 (programming address) and R1H (programming data) values. The values of #a and #b depend on the operating frequency. They should be set as indicated in table 6.11. FLMCR: .EQU H'FF80 EBR1: .EQU H'FF82 EBR2: .EQU H'FF83 TCSRW: .EQU H'FFBE TCW: .EQU H'FFBF .ALIGN 2 PRGM: MOV.B #H'**, R0H ; MOV.B R0H, @EBR*:8 ; Set EBR* MOV.B #H'00, R6L ; Program-verify fail count MOV.W #H'a, R5 ; Set program loop counter MOV.B R1H, @R3 ; Dummy write PRGMS: INC R6L ; Program-verify fail counter + 1 → R6L MOV.W #H'FE5A, R4 ; MOV.B R4L, @TCSRW:8 ; MOV.B R4H, @TCW:8 ; MOV.B #H'36, R4L ; MOV.B R4L, @TCSRW:8 ; Start watchdog timer MOV.W R5, R4 ; Set program loop counter |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |