Electronic Components Datasheet Search
  English  ▼

X  

HD6433644R Datasheet(PDF) 161 Page - Renesas Technology Corp

Part # HD6433644R
Description  8-Bit Single-Chip Microcomputer
PDF  549 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

HD6433644R Datasheet(HTML) 161 Page - Renesas Technology Corp

Back Button HD6433644R Datasheet HTML 157Page - Renesas Technology Corp HD6433644R Datasheet HTML 158Page - Renesas Technology Corp HD6433644R Datasheet HTML 159Page - Renesas Technology Corp HD6433644R Datasheet HTML 160Page - Renesas Technology Corp HD6433644R Datasheet HTML 161Page - Renesas Technology Corp HD6433644R Datasheet HTML 162Page - Renesas Technology Corp HD6433644R Datasheet HTML 163Page - Renesas Technology Corp HD6433644R Datasheet HTML 164Page - Renesas Technology Corp HD6433644R Datasheet HTML 165Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 161 / 549 page
background image
Section 6 ROM
Rev. 6.00 Sep 12, 2006 page 141 of 526
REJ09B0326-0600
Notes: 1. In this sample program, the stack pointer (SP) is set to address H'FF80. On-chip RAM
addresses H'FF7E and H'FF7F are used as a stack area. Therefore addresses H'FF7E
and H'FF7F should not be used when this program is executed, and on-chip RAM
should not be disabled.
2. It is assumed that this program, written in the ROM area, is transferred to the RAM
area and executed there. For #RAMSTR in the program, substitute the start address of
the RAM area to which the program is transferred. The value set for #RAMSTR must
be an even number.
FLMCR:
.EQU
H'FF80
EBR1:
.EQU
H'FF82
EBR2:
.EQU
H'FF83
TCSRW:
.EQU
H'FFBE
TCW:
.EQU
H'FFBF
STACK:
.EQU
H'FF80
.ALIGN 2
START:
MOV.W
#STACK,
SP
;
Set stack pointer
;
Set R0 value as explained on previous page. This sample program erases
;
all blocks.
MOV.W
#H'0FFF,
R0
;
Select blocks to be erased (R0: EBR1/EBR2)
MOV.B
R0H,
@EBR1
;
Set EBR1
MOV.B
R0L,
@EBR2
;
Set EBR2
;
#RAMSTR is start address of RAM area to which program is transferred
;
Set #RAMSTR to even number
MOV.W
#RAMSTR, R2
;
Transfer destination start address (RAM)
MOV.W
#ERVADR, R3
;
ADD.W
R3,
R2
;
#RAMSTR + #ERVADR
→ R2
MOV.W
#START,
R3
;
SUB.W
R3,
R2
;
Address of data area used in RAM
MOV.B
#H'00,
R1L
;
Used to test bit R1L in R0
PRETST:
CMP.B
#H'0C,
R1L
;
R1L = H'0C?
BEQ
ERASES
;
If finished checking all R0 bits, branch to ERASES
CMP.B
#H'08,
R1L
;
BMI
EBR2PW
;
If R1L ≥ 8, EBR1 test; if R1L < 8, EBR2 test
MOV.B
R1L,
R1H
;
SUBX
#H'08,
R1H
;
R1L – 8
→ R1H
BTST
R1H,
R0H
;
Test bit R1H in EBR1 (R0H)
BNE
PREWRT
;
If bit R1H in EBR1 (R0H) is 1, branch to PREWRT
BRA
PWADD1
;
If bit R1H in EBR1 (R0H) is 0, branch to PWADD1
EBR2PW:
BTST
R1L,
R0L
;
Test bit R1L in EBR2 (R0L)
BNE
PREWRT
;
If bit R1L in EBR2 (R0L) is 1, branch to PREWRT
PWADD1:
INC
R1L
;
R1L + 1
→ R1L



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


Datasheet Download

Go To PDF Page


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


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