M30870T2-CPE User’s Manual
2. Setup
REJ10J0766-0400 Rev.4.00 February 16, 2006
(3) Setting SW5 on the M30870T-EPBM
Table 2.8 lists the examples of setting the switch SW5. It is necessary to change the setting if using the analog input port
selection function of the A/D converter when selecting the MCU file "m30870_ad.mcu" in the Init dialog box of the
emulator debugger.
Setting the SW5 enables to set each analog input pin for selecting an analog input port. When selecting AN00 to AN07 or
AN20 to AN27 for the analog input port select bits (bit 2 and bit 1 of 0394h), set the pins used for A/D conversion to ON,
the pins not used to OFF.
However, when selecting the MCU file “m30870.mcu” in the Init dialog box of the emulator debugger, set the switch SW5
as the factory-settings (all lower side).
Table 2.8 Switch settings of the M30870T-EPBM (SW5)
Analog input port
Setting
Description
When not using the
analog input port
selection function
O
N
1
2
3
4
5
6
7
8
AD ON 0
7
OFF 0
7
This is the setting when not using the analog input port selection
function. When using this product with the conditions below, use
this setting.
- When using the memory expansion mode
- When using the multi-port sweep mode
- When selecting AN0 to AN7 for analog input port select bits
- When selecting AN150 to AN157 for analog input port select bits
When using AN23 to
AN27
O
N
1
2
3
4
5
6
7
8
AD ON 0
7
OFF 0
7
AD23 to AD27 used: ON
AD20 to AD22 unused: OFF
This is a setting when using the analog input port selection function
and using AN23 to AN27 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P153 to P157 to
input. Pins P150 to P152 can be used for I/O port, ISTxD0, ISCLK0
and ISRxD0.
When using AN20 to
AN27
AD20 to AD27 used: ON
O
N
1
2
3
4
5
6
7
8
AD ON 0
7
OFF 0
7
This is a setting when using the analog input port selection function
and using AN20 to AN27 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P150 to P157 to
input.
Pins P150 to P157 cannot be used for I/O port, ISTxD0,
ISCLK0 and ISRxD0.
When using AN04 to
AN07
O
N
1
2
3
4
5
6
7
8
AD ON 0
7
OFF 0
7
AD04 to AD07 used: ON
AD00 to AD03 unused: OFF
This is a setting when using the analog input port selection function
and using AN04 to AN07 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P154 to P157 to
input. Pins P150 to P153 can be used for I/O port, ISTxD0, ISCLK0
and ISRxD0.
When using AN03 to
AN05 and AN25 to
AN27
O
N
1
2
3
4
5
6
7
8
AD ON 0
7
OFF 0
7
AD03 to AD05 used: ON
AD25 to AD27 used: ON
AD00 to AD02 unused: OFF
AD20 to AD22 unused: OFF
This is a setting when using the analog input port selection function
and using AN03 to AN05 and AN25 to AN27 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P153 to P157 to
input. Pins P150 to P152 can be used for I/O port, ISTxD0, ISCLK0
and ISRxD0.
Page 44 of 102