Rtc/Touch Panel/Key Input/Power Supply Status Register (Rtkisr); Infrared Remote Control Data Structure - Renesas SH7727 General Information Manual

T-engine development kit, hardware volume
Table of Contents

Advertisement

R0P7727TH003TRKE General Information Manual

6.10.7 RTC/Touch Panel/Key Input/Power Supply Status Register (RTKISR)

This status register indicates the RTC, touch panel, or key input status. Below is a brief description of the
status bits for infrared remote control signals.
Address: 0x0090 Initial value: 0x00
D7
D6
0
0
R
R
(1) IRRIF
IRRIF bit
0
1

6.10.8 Infrared Remote Control Data Structure

The following shows the relation between the infrared remote control data and repeat codes. In addition, it
Remote control
data
Repeat code
shows a structure of remote control data in the NEC format.
Example) NEC format remote control data
[Infrared Remote Control Operation Procedure]
[Initial setting]
(1) Two kinds of formats are set by selecting the FORMAT bit of the IRRCR register.
(2) The START bit of the IRRCR register is set to "1" to start infrared remote control and infrared signal
reception
(3) To enable an interrupt at the time of receiving a frame of the signal, the RDIE bit is set to "1."
(4) To enable an interrupt at the time of transmitting a frame of the signal, the TDIE bit is set to "1."
[For infrared signal reception]
(1) When a frame of data has been received (RDI=1), the IRRIF bit of the RTKISR register is set to
"1."
(2) When an interrupt at completion of signal reception has been enabled (RDIE=1), an interrupt occurs when
a frame of data is stored in the IRRRFDE register.
(3) To obtain the received data, the receiving FIFO data register (IRRRFDR) is read. The IRRRFDR register
contains a data count (that indicates the number of items of one frame of data received) and the received
data itself. If this register is read, the data count and data itself are output in this order.
(4) The size of received data is set in the received data count register (IRRRDNR). When two frames have
been received, the total data count and the two frames of data are set in the received data count register
(IRRRDNR).
D5
D4
0
IRRIF
R
R/W
A frame of data has not been transmitted or received. (Initial value)
A frame of data has been transmitted or received.
[Clear condition]
"0" is written with the IRRIF bit set to "1."
LEN
DATA1
0x00
0x04
Custom 1
D3
D2
POWERIF
KEYIF
R/W
R/W
Setting
DATA2
Custom 2
88
Power Supply Controller
D1
D0
TPIF
RTCIF
R/W
R/W
··········
DATAn
Data 1
Data 2

Advertisement

Table of Contents
loading

Table of Contents