메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

How to switch A/D input pin and D/A output pin when they are multiplexed?

Latest Updated:03/24/2009

Question:

How should I switch between the A/D input pin and D/A output pin, which the A/D input and D/A output are multiplexed? The pin function controller(PFC) can only select "Other Function" or "Port Input".

Answer:

Please set as follows to switch between the A/D input and D/A output.

To select as the D/A pin

  1. Set the port L control register(PLCR) to "0" to set the pin function to "Other Function".

  2. Set the DAOE1 bit(DA1 output) and DAOE0 bit(DA0 output) of the D/A control register(DACR) to "1" to allow the D/A conversion and analog output.

To select as the A/D pin

  1. Set the port L control register(PLCR) to "0" to set the pin function to "Other Function".

  2. Set the DAOE1 bit and DAOE0 bit of the D/A control register(DACR) to "0" to prohibit the D/A output.

Suitable Products
SH7729R
SH7727
SH7709S
SH7706
  • 이 기사가 도움이 되셨나요?