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.2 Port 1<br />

48-pin products: P10 to P14 function as a 5-bit I/O port.<br />

64-pin products: P10 to P15 and P17 function as a 7-bit I/O port.<br />

80-pin products: P10 to P17 function as an 8-bit I/O port.<br />

100-pin products: P10 to P17 function as an 8-bit I/O port.<br />

Port 1 is an 8-bit or a 7-bit, or a 5-bit I/O port with an output latch. Port 1 can be set to the input mode or output mode in<br />

1-bit units using port mode register 1 (PM1). When the P10 to P17 pins are used as an input port, use of an on-chip pullup<br />

resistor can be specified in 1-bit units by pull-up resistor option register 1 (PU1).<br />

Input to the P10, P11, and P17 pins can be specified through a normal Schmitt3 input buffer or a Schmitt1 input buffer<br />

using port input mode register 1 (PIM1).<br />

These pins also function as serial interface data I/O, timer I/O, clock I/O, external interrupt request input and segment<br />

signal outputs for the LCD controller/driver.<br />

To use P10 to P17 as the port function, refer Table 4-3.<br />

Table 4-3. Setting of P10 to P17 Pins to port function<br />

P10 to P17 Pins LCDPF1<br />

Alternate<br />

Register<br />

function<br />

port function<br />

Timer Serial<br />

P10<br />

P11<br />

P12<br />

P13<br />

P14<br />

P15<br />

P16<br />

P17<br />

R01UH0317EJ0004 Rev. 0.04 153<br />

Feb. 22, 2013<br />

PM1<br />

Register<br />

Input port Digital I/O selection<br />

- - Input mode<br />

Output port<br />

0 1 Output mode<br />

Input port Digital I/O selection<br />

- N/A Input mode<br />

Output port<br />

0<br />

PIM1<br />

Register<br />

Output mode -<br />

Input port Digital I/O selection<br />

- - Input mode<br />

Output port<br />

0 1 Output mode<br />

Input port Digital I/O selection<br />

- - Input mode<br />

Output port<br />

0 1 Output mode<br />

Input port Digital I/O selection<br />

- N/A Input mode<br />

Output port<br />

0<br />

Output mode<br />

Input port Digital I/O selection<br />

- - Input mode<br />

Output port<br />

0 1 Output mode<br />

Input port Digital I/O selection<br />

- N/A Input mode<br />

Output port<br />

0<br />

Output mode<br />

Input port Digital I/O selection<br />

- N/A Input mode<br />

Output port<br />

- - LCD segment<br />

output selection<br />

Reset signal generation sets port 1 to input mode.<br />

Figures 4-7 to 4-11 show block diagrams of port 1.<br />

0<br />

Output mode -<br />

POM<br />

Register<br />

Remarks<br />

0 N/A Schmitt1 input<br />

1 Schmitt3 input<br />

0 N/A Schmitt1 input<br />

1 Schmitt3 input<br />

N/A N/A<br />

N/A N/A<br />

N/A N/A<br />

N/A N/A<br />

N/A N/A<br />

0 N/A Schmitt1 input<br />

1 Schmitt3 input<br />

- - - - - LCD segment<br />

output

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

Saved successfully!

Ooh no, something went wrong!