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

4.2.7 Port 6<br />

48-pin products: P60 and P61 function as a 2-bit I/O port.<br />

64-pin products: P60 and P61 function as a 2-bit I/O port.<br />

80-pin products: P60, 61, 65, and P66 function as a 4-bit I/O port.<br />

100-pin products: P60 to P66 function as a 7-bit I/O port.<br />

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

units using port mode register 6 (PM6). When the P60 to P66 pins are used as an input port, use of an on-chip pull-up<br />

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

Input to the P61 and P63 pins can be specified through a normal Schmitt3 input buffer or a Schmitt1 input buffer using<br />

port input mode register 5 (PIM5).<br />

Output from the P60 and P61 pins can be specified as normal CMOS output or N-ch open-drain output (VDD tolerance),<br />

using port output mode register (POM).<br />

These pins also function as serial interface data I/O, timer I/O, real-time clock correction clock output, clock / buzzer<br />

output, and external interrupt request input.<br />

To use P60 to P66 as the port function, refer Table 4-7.<br />

P60<br />

P61<br />

P62<br />

P63<br />

P64<br />

P65<br />

P66<br />

P60 to P66 Pins Alternate function<br />

port function Timer Serial<br />

Table 4-7. Setting of P60 to P66 Pins to port function<br />

R01UH0317EJ0004 Rev. 0.04 173<br />

Feb. 22, 2013<br />

PM6<br />

Register<br />

PIM6<br />

Register<br />

POM<br />

Register<br />

Input port - - Input mode N/A<br />

-<br />

Output port 0 1 Output mode<br />

Input port - - Input mode<br />

Output port 0 1 Output mode -<br />

Input port - - Input mode<br />

Output port 0 1 Output mode<br />

Input port - N/A Input mode<br />

Output port 0<br />

Input port - N/A Input mode<br />

Output port 0<br />

Output mode -<br />

Output mode<br />

Input port - N/A Input mode<br />

Output port 0<br />

Output mode<br />

Input port - N/A Input mode<br />

Output port 0<br />

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

Figures 4-22 to 4-27 show block diagrams of port6.<br />

Output mode<br />

Remarks<br />

0 CMOS output<br />

1 N-ch OD output<br />

0 - Schmitt1 input<br />

1<br />

N/A N/A<br />

Schmitt3 input<br />

0 CMOS output<br />

1 N-ch OD output<br />

0 N/A<br />

Schmitt1 input<br />

1 Schmitt3 input<br />

N/A N/A<br />

N/A N/A<br />

N/A N/A

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

Saved successfully!

Ooh no, something went wrong!