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

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

mode register 7 (PM7). When the P70 to P75 pins are used as an input port, use of an on-chip pull-up resistor can be<br />

specified in 1-bit units by pull-up resistor option register 7 (PU7).<br />

Input to the P70 pin can be specified through a normal Schmitt3 input buffer or a Schmitt1 input buffer using port input<br />

mode register 7 (PIM7).<br />

These pins also function as A/D conversion start trigger input, output pins for the sound generator, serial interface data<br />

I/O, timer I/O, clock / buzzer output, flash memory programming I/O, external interrupt request input, and segment signal<br />

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

To use P70 to P75 as the port function, refer Table 4-8.<br />

P70 to P75 Pins LCDPF7 Alternate function<br />

port function<br />

P70<br />

P71<br />

P72<br />

P73<br />

P74<br />

P75<br />

Table 4-8. Setting of P70 to P75 Pins to port function<br />

Register Timer/<br />

SGO<br />

Serial<br />

R01UH0317EJ0004 Rev. 0.04 180<br />

Feb. 22, 2013<br />

PM7<br />

Register<br />

Input port N/A<br />

- N/A Input mode<br />

Output port<br />

0<br />

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

- Input mode<br />

Output port<br />

PIM7<br />

Register<br />

Output mode -<br />

1 Output mode<br />

Input port Digital I/O - N/A Input mode<br />

Output port<br />

selection<br />

0<br />

Output mode -<br />

Input port Digital I/O - N/A Input mode<br />

Output port<br />

selection<br />

0<br />

Output mode<br />

Input port Digital I/O - - Input mode<br />

Output port<br />

selection<br />

0 1 Output mode<br />

Input port Digital I/O - N/A Input mode<br />

Output port<br />

selection<br />

0<br />

Output mode<br />

- - LCD<br />

Segment<br />

output<br />

selection<br />

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

Figures 4-28 to 4-32 show block diagrams of port 7.<br />

POM<br />

Register<br />

Remarks<br />

0 N/A Schmitt1 input<br />

1 Schmitt3 input<br />

N/A N/A<br />

N/A<br />

- N/A<br />

N/A N/A<br />

- N/A<br />

- - - - - LCD segment output

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

Saved successfully!

Ooh no, something went wrong!