EM78815
8-Bit Microcontroller
Bit 3 (DA2_IDEN) : Enable Data RAM Address Flag 2 (IOC6 and IOC7)
Increase/Decrease Enable Function.
If this bit is set, the Data RAM address will increase or decrease
after accessing (read or write) the Data RAM (IOC5 register).
1/0 → Enable / Disable
Bit 4 :
Undefined register, not for use.
Bit 5 (DO_ID) :
Data ROM address automatic increase/decrease switch. Set to
1 means auto_increase, clear to 0 means auto_decrease.
1/0 → auto increase / auto decrease
Bit 6 (DA1_ID) :
Bit 7 (DA2_ID) :
Data RAM address (RD and RE register) automatic
increase/decrease switch. Set to 1 means auto_increase,
clear to 0 means auto_decrease.
1/0 → auto increase / auto decrease
Data RAM address (IOC6 and IOC7 register) automatic
increase/decrease switch. Set to 1 means auto_increase,
clear to 0 means auto_decrease.
1/0 → auto increase / auto decrease
7.3.3.2 Page 1 Data RAM Data Buffer 2
Bit 7
RAM2D7 RAM2D6 RAM2D5 RAM2D4 RAM2D3 RAM2D2 RAM2D1 RAM2D0
R/W-X R/W-X R/W-X R/W-X R/W-X R/W-X R/W-X R/W-X
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit 0 ~ Bit 7 (RAM1D0 ~ RAM1D7) : Data RAM buffer for RAM reading or writing.
Location RC~RE Page 2, user can move a large number of continuous data from an
address to another into the data RAM.
Example (move data from 0x0000 to 0x1000):
BC
R3,@5
MOV A , @0xF0
;Enable Data RAM Flag 1 and Flag 2
;auto_increase function
IOW
BS
0x05
R3 , @5
R3 , @6
R3 , @7
:Set corresponding page
BS
BC
MOV A , @0x00
;Assign Data RAM Index 1
;start address ”0x0000”
MOV
MOV
0x0D , A
0x0E , A
50 •
Product Specification (V2.4) 02.17.2006
(This specification is subject to change without further notice)