10
10-37
MULTIJUNCTION TIMERS
10.2 Common Units of Multijunction Timers
32180 Group User’s Manual (Rev.1.0)
b4
5
b7
Interrupt request status
Initial state
Event occurs on bit 6
Interrupt request
Event occurs on bit 4
Only bit 6 cleared
Bit 4 data retained
b4
5
b7
1 1 0 1
Write to the interrupt request status
Example for clearing interrupt request status
0 0 0 0
0 0 1 0
1 0 1 0
1 0 0 0
Program example
ISTREG = 0xfd; /* Clear ISTAT1 (0x02 bit) only */
• To clear the Interrupt Request Status Register 0 (ISTREG) interrupt request status 1, ISTAT1 (0x02 bit)
To clear an interrupt request status, always be sure to write "1" to all other interrupt request status bits. At this time,
avoid using a logic operation like the one shown below. Because it requires three step-ISTREG read, logic operation
and write, if another interrupt request occurs between the read and write, status may be inadvertently cleared.
b4
5
6
b7
Interrupt request status
Event occurs on bit 6
Event occurs on bit 4
Only bit 6 cleared
Bit 4 also cleared
0 0 1 0
1 0 1 0
0 0 0 0
Read
0 0 1 0
0 0 0 0
Clear bit 6 (ANDing with 1101)
Write
6
6
ISTREG &= 0xfd; /* Clear ISTAT1 (0x02 bit) only */
Figure 10.2.4 Example for Clearing Interrupt Request Status
Содержание M32R/ECU Series
Страница 17: ...12 This page is blank for reasons of layout...
Страница 18: ...CHAPTER 1 OVERVIEW 1 1 Outline of the 32180 Group 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Assignments...
Страница 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Страница 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Страница 795: ...22 22 2 32180 Group User s Manual Rev 1 0 TYPICAL CHARACTERISTICS To be written at a later time...
Страница 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Страница 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Страница 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...