R01UH0136EJ0210 Rev.2.10
Page 613 of 800
Jul 31, 2012
M16C/64A Group
26. Consumer Electronics Control (CEC) Function
26.4
Interrupts
The CEC function has CEC1 interrupt and CEC2 interrupt. Table 26.9 and Table 26.10 list CEC Interrupt
Sources. These sources generate a CEC1 interrupt or CEC2 interrupt request. When the CRISELM bit in
the CISEL register is 1, the eighth/tenth bit receive interrupt request is generated if the received
Destination address is either one of the following case:
•
Matches the address selected by the CRADRI1 or CRADRI2 register.
•
Broadcast (1111b)
Figure 26.18 shows CEC Function Interrupt.
Table 26.9
CEC1 Interrupt Sources
Type
Source
Interrupt Request Timing
Interrupt Enable
Bit
Transmit
interrupt
Eighth bit transmitted
When the CTD8FLG bit changes
from 0 to 1
CTISEL0
Tenth bit transmitted
When the CTD8FLG bit changes
from 1 to 0
CTISEL1
Transmit error
interrupt
Arbitration lost
When the CTABTFLG bit changes
from 0 to 1
CTISEL2
NACK received (Direct)
ACK received (Broadcast)
When the CTNACKFLG bit
changes from 0 to 1
CTD8FLG, CTABTFLG, CTNACKFLG: Bits in the CECFLG register
CTISEL0, CTISEL1, CTISEL2: Bits in the CISEL register
Table 26.10
CEC2 Interrupt Sources
Type
Source
Interrupt Request Timing
Interrupt Enable
Bit
Receive
interrupt
Eighth bit received
When the CRD8FLG bit changes
CRISEL0
Tenth bit received
When the CRD8FLG bit changes
CRISEL1
Start bit detected
When the CRSTFLG bit changes
from 0 to 1
CRISELS
Receive error
interrupt
Nonstandard signal received
When the CRERRFLG bit
changes from 0 to 1
CRISEL2
CRD8FLG, CRSTFLG, CRERRFLG: Bits in the CECFLG register
CRISEL0, CRISEL1, CRISELS, CRISEL2: Bits in the CISEL register
Note:
1.
The CRISELM bit in the CISEL register affects the interrupt.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...