EM78815
8-Bit Microcontroller
IOW 0x06
; Assign DATA RAM Index 2 start
; address ”0x1000”
MOV
IOW
MOV
IOW
MOV
IOW
:
A , @0x10
0x07
A , 0x0C ;Read data from Index 1(address:0x0000)
0x05 ;Write data to Index 2(address:0x1000)
A , 0x0C ;Read data from Index 1(address:0x0001)
0x05 ;Write data to Index 2(address:0x1001)
:
7.3.4 IOC6 Port 6 I/O Control, Data RAM Address (L)
7.3.4.1 Page 0 Port 6 I/O Control
Bit 7
IOC67
R/W-1
Bit 6
IOC66
R/W-1
Bit 5
IOC65
R/W-1
Bit 4
IOC64
R/W-1
Bit 3
IOC63
R/W-1
Bit 2
IOC62
R/W-1
Bit 1
IOC61
R/W-1
Bit 0
IOC60
R/W-1
Bit 0~Bit 7 (IOC60 ~ IOC67) : Port 6 (0~7) I/O direction control register
0 → put the relative I/O pin as output
1 → put the relative I/O pin into high impedance
7.3.4.2 Page 1 Data RAM Address 2 (L)
Bit 7
RAM2A7 RAM2A6 RAM2A5 RAM2A4 RAM2A3 RAM2A2 RAM2A1 RAM2A0
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 (RAM2A0 ~ RAM2A7) : Data RAM address (Address 0 to Address 7) for
RAM reading or writing
7.3.5 IOC7 PORT 7 I/O Control, Data RAM Address 2 (H)
7.3.5.1 Page 0 Port 7 I/O Control
Bit 7
IOC77
R/W-1
Bit 6
IOC76
R/W-1
Bit 5
IOC75
R/W-1
Bit 4
IOC74
R/W-1
Bit 3
IOC73
R/W-1
Bit 2
IOC72
R/W-1
Bit 1
IOC71
R/W-1
Bit 0
IOC70
R/W-1
Bit 0~Bit 7 (IOC70 ~ IOC77) : Port 7(0~7) I/O direction control register
0 → relative I/O pin as output
1 → relative I/O pin into high impedance
7.3.5.2 Page 1 Data RAM Address 2 (H)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RAM2A11 RAM2A10 RAM2A9 RAM2A8
R/W-X R/W-X R/W-X R/W-X
−
×
−
×
−
×
−
×
Product Specification (V2.4) 08.01.2004
(This specification is subject to change without further notice)
51