Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

H8/3334Y Scheda tecnica(PDF) 485 Page - Renesas Technology Corp

Il numero della parte H8/3334Y
Spiegazioni elettronici  Single-Chip Microcomputer
PDF  747 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  RENESAS [Renesas Technology Corp]
Homepage  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

H8/3334Y Scheda tecnica(HTML) 485 Page - Renesas Technology Corp

Back Button H8/3334Y Datasheet HTML 481Page - Renesas Technology Corp H8/3334Y Datasheet HTML 482Page - Renesas Technology Corp H8/3334Y Datasheet HTML 483Page - Renesas Technology Corp H8/3334Y Datasheet HTML 484Page - Renesas Technology Corp H8/3334Y Datasheet HTML 485Page - Renesas Technology Corp H8/3334Y Datasheet HTML 486Page - Renesas Technology Corp H8/3334Y Datasheet HTML 487Page - Renesas Technology Corp H8/3334Y Datasheet HTML 488Page - Renesas Technology Corp H8/3334Y Datasheet HTML 489Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 485 / 747 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Scheda tecnica Scarica

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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