CHAPTER 3 CPU FUNCTIONS
User’s Manual U15109EJ3V0UD
105
(2) Memory address output mode register (MAM)
This register sets the mode of ports 3, 10, and 11 in the V850/SC1 and V850/SC2. Separate output can be set
for the address bus (A1 to A15) in the external expansion mode.
The MAM register can be written in 8-bit units. If read is performed, undefined values will be read. However, bits
3 to 7 are fixed to 0.
After reset: 00H
W
Address: FFFFF068H
Symbol
7
6
5
4
3
2
1
0
MAM
0
0
0
0
0
MAM2
MAM1
MAM0
MAM2
MAM1
MAM0
Address space
Port 11
Port 10
Port 3
0
0
0
−
Port mode
0
1
0
32 bytes
0
1
1
512 bytes
1
0
0
8 KB
1
0
1
16 KB
1
1
0
32 KB
1
1
1
64 KB
A1 to A4
A5 to
A8
A9 to
A12
A13
A14
A15
Other than above
Setting prohibited
Caution
The memory address output mode register (MAM) cannot be debugged by an in-circuit
emulator. Also, switching to a separate bus is not possible by setting the MAM register
using software.
For details, refer to the User’s Manual of the relevant in-circuit emulator.
Remark
For details of the operation of each port, see
2.3 Description of Pin Functions
.
P34 to P36, P100 to P107, and P110 to P113 are used for separate bus output. The procedure for performing
separate bus output is shown below.
<1> Set the Pn bit of port m (Pm) used for separate output to 0 (m = 3, 10, 11).
<2> Set the PMn bit of the port m mode register (PMm) to 0 (output mode) (m = 3, 10, 11).
<3> When the port to be used for the separate bus is used as an alternate-function pin for other than the
separate bus, turn off the function that uses the alternate-function pin.
<4> Set the memory address output mode register (MAM).
<5> Set the memory expansion mode register (MM).
Remark
When m = 3:
n = 34 to 36
When m = 10: n = 100 to 107
When m = 11: n = 110 to 113