R01UH0092EJ0110 Rev.1.10
Page 606 of 807
Jul 31, 2012
M16C/64C Group
26. Consumer Electronics Control (CEC) Function
26.3.5.5
Reception Examples
Figure 26.10 shows a Reception Example and Figure 26.11 shows a Reception Example (Change
from Error Low Pulse Output Disabled to Enabled When an Error Occurs).
When a receive error occurs, the CRERRFLG bit in the CECFLG register becomes 1 (receive error).
If a reception ends due to the error during reception, set the CRXDEN bit in the CECC3 register to 0
(receive disabled). When the CRXDEN bit is set to 0, the CRERRFLG bit becomes 0. To restart
reception, set the CRXDEN bit to 0 (reception disabled), and then set the CRXDEN bit to 1 (reception
enabled) after waiting for one or more cycles of the count source.
Figure 26.10 Reception Example
Header block
Data block
IR bit
CRSTFLG bit
CRFLG bit
CRXDEN bit
CEC
ST
H6
H1
H0
ACK
D7
D6
D1
D0
H7
EOM
EOM
The above diagram applies under the following conditions.
y
The CFIL bit in the CICC2 register is set to 0 (filter disabled).
y
The CRISEL0 bit in the CISEL register is set to 0 (8th bit receive interrupt disabled).
y
The CRISEL1 bit in the CISEL register is set to 1 (10th bit receive interrupt enabled).
y
The CRISELS bit in the CISEL register is set to 1 (reception start bit interrupt enabled).
CRXDEN bit: Bit in the CECC3 register
Bits CRFLG, CRD8FLG, and CRSTFLG: Bits in the CECFLG register
IR bit: Bit in the CEC2IC register
Bits CCRBE and CCRBAI: Bits in the CCRB2 register
Undefined
Header block data
Set to 0 by acceptance of an
interrupt request or by a program
Data block data
Header block EOM
Data block EOM
Undefined
Header block ACK
CRD8FLG bit
CCRB1 register
CCRBE bit
CCRBAI bit
Data block ACK
. . . .
. . . .
Set to 0 by acceptance of an
interrupt request or by a program
ACK
Undefined
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...