| Motore di ricerca datesheet componenti elettronici |
|
H8/3334Y Scheda tecnica(PDF) 485 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3334Y Scheda tecnica(HTML) 485 Page - Renesas Technology Corp |
|
485 / 747 page ![]() 455 Sample Program for Programming One Byte: This program uses the following registers. R0H: Specifies blocks to be erased. R1H: Stores data to be programmed. R1L: Stores data to be read. R3: Stores address to be programmed. Valid address specifications are H'0000 to H'EF7F in mode 2, and H'0000 to H'F77F in mode 3. R4: Sets program and program-verify timing loop counters, and also stores register setting value. R5: Sets program timing loop counter. R6L: Used for program-verify fail count. Arbitrary data can be programmed at an arbitrary address by setting the address in R3 and the data in R1H. The setting of #a and #b values depends on the clock frequency. Set #a and #b values according to tables 20.9 (1) and (2). FLMCR: .EQU H'FF80 EBR1: .EQU H'FF82 EBR2: .EQU H'FF83 TCSR: .EQU H'FFA8 .ALIGN 2 PRGM: MOV.B #H'**, R0H ; MOV.B R0H, @EBR*:8 ; Set EBR* MOV.B #H'00, R6L ; Program-verify fail counter 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'A579, R4 ; MOV.W R4, @TCSR ; Start watchdog timer MOV.W R5, R4 ; Set program loop counter BSET #0, @FLMCR:8 ; Set P bit LOOP1: SUBS #1, R4 ; MOV.W R4, R4 ; BNE LOOP1 ; Wait loop BCLR #0, @FLMCR:8 ; Clear P bit MOV.W #H'A500, R4 ; MOV.W R4, @TCSR ; Stop watchdog timer MOV.B #H'b , R4H ; Set program-verify loop counter BSET #2, @FLMCR:8 ; Set PV bit LOOP2: DEC R4H ; BNE LOOP2 ; Wait loop MOV.B @R3, R1L ; Read programmed address CMP.B R1H, R1L ; Compare programmed data with read data BEQ PVOK ; Program-verify decision BCLR #2, @FLMCR:8 ; Clear PV bit |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |