04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 4 PORT FUNCTIONS<br />

(7) A/D port configuration register (ADPC)<br />

This register switches the P20/ANI0/AVREFP to P27/ANI7, and P150/ANI8 pins to digital I/O of port or analog input of<br />

A/D converter.<br />

The ADPC register can be set by an 8-bit memory manipulation instruction.<br />

Reset signal generation sets this register to 00H.<br />

Figure 4-57. Format of A/D port configuration Register<br />

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W<br />

ADPC 0 0 0 0 ADPC3 ADPC2 ADPC1 ADPC0 F006E 00H R/W<br />

ADPC3<br />

ADPC2<br />

ADPC1<br />

ADPC0<br />

ANI8/P150<br />

ANI7/P27<br />

Analog input (A)/digital I/O (D) switching<br />

0 0 0 0 A A A A A A A A A<br />

ANI6/P26<br />

0 0 0 1 D D D D D D D D D<br />

0 0 1 0 D D D D D D D D A<br />

0 0 1 1 D D D D D D D A A<br />

0 1 0 0 D D D D D D A A A<br />

0 1 0 1 D D D D D A A A A<br />

0 1 1 0 D D D D A A A A A<br />

0 1 1 1 D D D A A A A A A<br />

1 0 0 0 D D A A A A A A A<br />

1 0 0 1 D A A A A A A A A<br />

Other than the above Setting prohibited, all the channels ANI8-0 are alalog input on<br />

ANI5/P25<br />

all hardware sepecification<br />

A(Analog): Digital functions (input/output) are disabled. PMmn setting is invalid.<br />

D(Digital): Digital functions (input/output) are enabled. PMmn setting is valid.<br />

ANI4/P24<br />

R01UH0317EJ0004 Rev. 0.04 232<br />

Feb. 22, 2013<br />

ANI3/P23<br />

ANI2/P22<br />

ANI1/AVREFM/P21<br />

ANI0/AVREFP/P20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!