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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

4.2.14 Port 15 (100-pin products only)<br />

Port 15 is an 1-bit port with an output latch. Port 15 can be set to the input mode or output mode in 1-bit units using port<br />

mode register 15 (PM15).<br />

This port can also be used for A/D converter analog input.<br />

To use P150/ANI8 as digital input pins, set them in the digital I/O mode by using the A/D port configuration register<br />

(ADPC) and in the input mode by using the PM15 register.<br />

To use P150/ANI8 as digital output pins, set them in the digital I/O mode by using the ADPC register and in the output<br />

mode by using the PM15 register.<br />

To use P150/ANI8 as analog input pins, set them in the analog input mode by using the A/D port configuration register<br />

(ADPC) and in the input mode by using the PM15 register.<br />

P150<br />

P150 Pin<br />

port function<br />

Table 4-14. Setting of P150 Pin to port function<br />

ADPC<br />

Register<br />

Input port 0001 to 1001<br />

Input mode<br />

Output port<br />

P150 is set in the analog input mode when the reset signal is generated.<br />

Figure 4-50 shows block diagrams of port 15.<br />

Internal bus<br />

WRADPC<br />

RD<br />

WRPORT<br />

WRPM<br />

Figure 4-50. Block Diagram of P150<br />

ADPC<br />

ADPC3 to ADPC0<br />

P15<br />

Output latch<br />

(P150)<br />

PM15<br />

PM150<br />

A/D converter<br />

Selector<br />

P15: Port register 15<br />

PM15: Port mode register 15<br />

ADPC: A/D port configuration register<br />

RD: Read signal<br />

WRxx: Write signal<br />

Input enable<br />

PM2<br />

Register<br />

Output mode<br />

P150/ANI8<br />

Remarks<br />

R01UH0317EJ0004 Rev. 0.04 207<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!