Table of Contents
ii 7702/7703 Group User’s Manual
4.3 Interrupt control .................................................................................................................... 4-6
4.3.1 Interrupt disable flag (I) ................................................................................................ 4-8
4.3.2 Interrupt request bit....................................................................................................... 4-8
4.3.3 Interrupt priority level select bits and processor interrupt priority level (IPL) .......4-8
4.4 Interrupt priority level ........................................................................................................ 4-10
4.5 Interrupt priority level detection circuit ........................................................................4-11
4.6 Interrupt priority level detection time ............................................................................ 4-13
4.7
Sequence from acceptance of interrupt request to execution of interrupt routine ...........................
4-14
4.7.1 Change in IPL at acceptance of interrupt request..................................................4-16
4.7.2 Storing registers ........................................................................................................... 4-17
4.8 Return from interrupt routine........................................................................................... 4-18
4.9 Multiple interrupts............................................................................................................... 4-18
____
4.10 External interrupts (INTi interrupt) ................................................................................ 4-20
____
4.10.1 Function of INTi interrupt request bit......................................................................4-23
____
4.10.2 Switch of occurrence factor of INTi interrupt request ...........................................4-25
4.11 Precautions when using interrupts............................................................................... 4-26
CHAPTER 5. TIMER A
5.1 Overview ..................................................................................................................................5-2
5.2 Block description .................................................................................................................. 5-3
5.2.1 Counter and reload register (timer Ai register) .........................................................5-4
5.2.2 Count start register........................................................................................................ 5-5
5.2.3 Timer Ai mode register ................................................................................................. 5-6
5.2.4 Timer Ai interrupt control register ............................................................................... 5-7
5.2.5 Port P5 and port P6 direction registers ..................................................................... 5-8
5.3 Timer mode ............................................................................................................................ 5-9
5.3.1 Setting for timer mode ................................................................................................ 5-11
5.3.2 Count source................................................................................................................ 5-13
5.3.3 Operation in timer mode ............................................................................................. 5-14
5.3.4 Select function ............................................................................................................. 5-15
5.4 Event counter mode ........................................................................................................... 5-19
5.4.1 Setting for event counter mode ................................................................................. 5-22
5.4.2 Operation in event counter mode .............................................................................. 5-24
5.4.3 Select functions............................................................................................................ 5-26
5.5 One-shot pulse mode ......................................................................................................... 5-30
5.5.1 Setting for one-shot pulse mode ............................................................................... 5-32
5.5.2 Count source................................................................................................................ 5-34
5.5.3 Trigger........................................................................................................................... 5-35
5.5.4 Operation in one-shot pulse mode............................................................................ 5-36
5.6 Pulse width modulation (PWM) mode ............................................................................ 5-39
5.6.1 Setting for PWM mode ............................................................................................... 5-41
5.6.2 Count source................................................................................................................ 5-43
5.6.3 Trigger........................................................................................................................... 5-43
5.6.4 Operation in PWM mode ............................................................................................ 5-44
CHAPTER 6. TIMER B
6.1 Overview ..................................................................................................................................6-2
6.2 Block description .................................................................................................................. 6-2
6.2.1 Counter and reload register (timer Bi register) .........................................................6-3
6.2.2 Count start register........................................................................................................ 6-4
6.2.3 Timer Bi mode register ................................................................................................. 6-5
6.2.4 Timer Bi interrupt control register ............................................................................... 6-6