Renesas M30850T-EPB Switch User Manual


 
( 33 / 76 )
Table 3.3 lists the examples of setting the switch SW5. It is necessary to change the setting when using
the analog input port selection function of the A-D converter.
By setting the SW5, it is possible to set each analog input pin when 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.
Table 3.3 Switch settings of the M30850T-EPBM (SW5)
Analog input port
When not using the
analog input port
selection function
(Factory-setting)
Setting
Description
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 microprocessor 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
When using AN20 to
AN27
When using AN04 to
AN07
When using AN03 to
AN05 and AN25 to
AN27
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.
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.
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.
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.
AD23 to AD27 used: ON
AD20 to AD22 unused: OFF
AD04 to AD07 used: ON
AD00 to AD03 unused: OFF
AD20 to AD27 used: ON
AD03 to AD05 used: ON
AD25 to AD27 used: ON
AD00 to AD02 unused: OFF
AD20 to AD22 unused: OFF