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

TIS271 TIS270<br />

Figure 4-66. Format of TOS20 and TOS21 Registers (2/2)<br />

TI27 (TAU unit2 CH7) alternate pin selection<br />

0 0 P93<br />

0 1 P37<br />

1 0 P62<br />

Other than above Setting prohibited (same as “00” setting)<br />

Considering direct LED driving, or other large current application, 16-bit resolution PWM outputs are also alternated to<br />

the SM pins. When configure pin function, the policy is that odd TO (ch1,3,5,7) of TAU should be output with higher priority.<br />

In addition, 4 kinds of output with different periods using different master CH’s can be achieved if by this means.<br />

(3) Timer input select else register (TISELSE)<br />

This register provides below selection function.<br />

(a) TAU unit 0 channel5 input selection<br />

The input source can be timer input signal (TI05) from port or internal/external clock.<br />

(b) Timer conjunction function of timer output to timer input just like 78K0/Dx2.<br />

TAU unit0 CH1 output can be connected to TAU unit0 CH0. This function is controlled by bit6.<br />

TAU unit2 CH1 output can be connected to TAU unit2 CH0. This function is controlled by bit7.<br />

This function is used for measuring speed or taco pulse. If only use timer caupture function to measure, there will<br />

be too many interrupts and increase the loading of software when input is higher (about 8kHz, 125us interrupt<br />

interval). So division of interrupt is necessary. At this usage, one timer is used as capture mode, its output is<br />

internally connected to another timer (operated as external event mode) to generate divided interrupt.<br />

(Refer to TMP2 and TMP3 conjunction function of 78K0/Dx2)<br />

Figure 4-67. Format of TISELSE Registers<br />

Address: FFF3E After reset: 00H R/W<br />

Symbol 7 6 5 4 3 2 1 0<br />

TISELSE TOTICON1 TOTICON0 0 0 0 0 TI05SEL1 TI05SEL0<br />

TI05SEL1 TI05SEL0 TIS051 TIS050 TAU unit0 CH5 input alternate selection<br />

0 0 0 0 P05<br />

0 0 0 1 P82<br />

0 0 1 0 P96<br />

0 1 x x Low-speed on-chip clock (fIL)<br />

1 0 x x Sub system clock (fSUB)<br />

1 1 x x Main external clock (fEX)<br />

Other than above Setting prohibited (same as “0000” setting)<br />

<br />

Considering the below purposes, every peripheral clock is connected to TI05 of TAU0<br />

Low-speed on-chip clock: For Frequency Detection of Safefy Function.<br />

Sub system clock: For the ultra accuracy trimming of high-speed on-chip oscillator Note<br />

External main clock: For the ultra accuracy trimming of high-speed on-chip oscillator without sub system clock<br />

Note<br />

Note: Count present operation frequency by timer. It is possible to change trimming code by access HIOTRM register.<br />

R01UH0317EJ0004 Rev. 0.04 247<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!