| Motore di ricerca datesheet componenti elettronici |
|
H8/3334Y Scheda tecnica(PDF) 435 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3334Y Scheda tecnica(HTML) 435 Page - Renesas Technology Corp |
|
435 / 747 page ![]() 405 ; Execute prewrite PREWRT: MOV.W @R2+, R3 ; Prewrite starting address PREW: MOV.B #H'00, R6L ; Prewrite-verify fail counter MOV.W #H'a, R5 ; Prewrite-verify loop counter PREWRS: INC R6L ; Prewrite-verify fail counter + 1 → R6L MOV.B #H'00, R1H ; MOV.B R1H, @R3 ; Write H'00 MOV.W #H'A578, R4 ; MOV.W R4, @TCSR ; Start watchdog timer MOV.W R5, R4 ; Set prewrite loop counter BSET #0, @FLMCR:8 ; Set P bit LOOPR1: SUBS #1, R4 ; MOV.W R4, R4 ; BNE LOOPR1 ; Wait loop BCLR #0, @FLMCR:8 ; Clear P bit MOV.W #H'A500, R4 ; MOV.W R4, @TCSR ; Stop watchdog timer MOV.B #H'c, R4H ; Set prewrite-verify loop counter LOOPR2: DEC R4H ; BNE LOOPR2 ; Wait loop MOV.B @R3, R1H ; Read data = H'00? BEQ PWVFOK ; If read data = H'00 branch to PWVFOK CMP.B #H'32, R6L ; Prewrite-verify executed 50 times? BEQ ABEND1 ; If prewrite-verify executed 50 times, branch to ABEND1 BRA PREWRS ; Prewrite again ABEND1: Programming error PWVFOK: ADDS #1, R3 ; Address + 1 → R3 MOV.W @R2, R4 ; Top address of next block CMP.W R4, R3 ; Last address? BNE PREW ; If not last address, prewrite next address PWADD2: INC R1L ; Used to test R1L+1 bit in R0 BRA PRETST ; Branch to PRETST ; Execute erase ERASES: MOV.W #H'0000, R6 ; Erase-verify fail counter MOV.W #H'd, R5 ; Set erase loop count ERASE: ADDS #1, R6 ; Erase-verify fail counter + 1 → R6 MOV.W #H'e, R4 ; MOV.W R4, @TCSR ; Start watchdog timer MOV.W R5, R4 ; Set erase loop counter BSET #1, @FLMCR:8 ; Set E bit LOOPE: NOP NOP NOP NOP SUBS #1, R4 ; MOV.W R4, R4 ; BNE LOOPE ; Wait loop BCLR #1, @FLMCR:8 ; Clear E bit MOV.W #H'A500, R4 ; MOV.W R4, @TCSR ; Stop watchdog timer |
|
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 |