Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

How to set to switch the functions between the A/D input and input port?

Latest Updated:03/25/2009

Question:

There is the pin which the A/D input and the input port are multiplexed but the pin function controller(PFC) has no register to switch them. How should I set it to switch the functions between the A/D input and input port?

Answer:

The PFC has no register to switch the functions between the A/D input and input port. If you select the pin which the A/D input and port input are multiplexed as the A/D input pin, please select the analog input channel by the channel select bit of the A/D control/status register (ADCSR). The pin which was not selected by the channel select bit of the ADCSR will be the input port.
Suitable Products
SH7144, SH7145
SH7065
SH7050, SH7051
SH7047, SH7049, SH7105, SH7107, SH7109
SH7046, SH7148, SH7101, SH7048, SH7104, SH7106, SH7108
SH7040, SH7041, SH7042, SH7043, SH7044, SH7045
SH7032, SH7034, SH7034B
SH7032
SH7018
SH7014, SH7016, SH7017