Section 6 User Break Controller (UBC)
Rev. 2.00 Mar 09, 2006 page 236 of 906
REJ09B0292-0200
6.3
Operation
6.3.1
User Break Operation Sequence
The sequence of operations from setting of break conditions to user break interrupt exception
handling is described below.
1. Set the break address in the break address register (BARA/BARB/BARC/BARD), the bits to
be masked in the break address mask register (BAMRA/BAMRB/BAMRC/BAMRD), the
break bits in the break data register (BDRC/BDRD), and the data to be masked in the break
data mask register (BDMRC/BDMRD).
Set the break bus conditions in the break bus cycle register (BBRA/BBRB/BBRC/BBRD).
Make three settings—CPU cycle/on-chip DMAC cycle select, instruction fetch/data access
select, and read/write select—for each of BBRA, BBRB, BBRC, and BBRD. A user break
interrupt will not be generated for a channel for which any one of these settings is 00.
Set the respective conditions in the corresponding BRCR register bits.
2. When a set condition is satisfied, the UBC sends a user break interrupt request to the interrupt
controller (INTC). The CPU condition match flag (CMFCA/CMFCB/CMFCC/CMFCD) and
DMAC condition match flag (CMFPA/CMFPB/CMFPC/CMFPD) is also set for the matched
condition for the respective channel.
3. The INTC determines the priority of the user break interrupt. As the priority level of a user
break interrupt is 15, the interrupt is accepted if the level set in the interrupt mask bits (I3 to I0)
in the status register (SR) is 14 or less. If the level set in bits I3 to I0 is 15, the user break
interrupt is not accepted, but is held pending until it can be. For details of priority
determination, see section 5, Interrupt Controller (INTC).
4. If the user break interrupt is accepted after its priority is determined, the CPU begins user
break interrupt exception handling.
5. Whether a set condition is matched or not can be ascertained from the respective condition
match flag (CMFCA, CMFPA, CMFCB, CMFPB, CMFCC, CMFPC, CMFCD, or CMFPD).
These flags are set by a match with the set condition, but are not reset. Therefore, if the setting
of a particular flag is to be checked again, the flag must be cleared by writing 0.
When an execution-times break is specified for channel C or D, the CMFCC, CMFPC,
CMFCD, or CMFPD flag is set when the number of executions matches the number of
executions specified by BETRC or BETRD.
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...