|
4507_M Datasheet, PDF (146/216 Pages) Renesas Technology Corp – 4-BIT CISC SINGLE-CHIP MICROCOMPUTER 4500 SERIES | |||
|
◁ |
4507 Group
APPLICATION
2.3 Timers
Continued from Figure 2.3.6 on the preceding page.
â Set Valid Waveform
Valid waveform of INT pin is selected.
INT pin input enabled, rising selected, Timer 1 control is enabled.
b3
b0
Interrupt control register I1 1 1 0 1 Rising edge detected (TI1A instruction)
â Set Auto-stop circuit
Timer 1 count auto-stop is selected.
b3
b0
Interrupt control register W2 â 1 â â
Timer 1 count auto-stop selected
(TW2A instruction)
â Clear Interrupt Request
INT interrupt activated condition is cleared.
External 0 interrupt request flag EXF0 â0â
INT interrupt activated condition cleared
(SNZ0 instruction)
Note when the interrupt request is cleared
When â is executed, considering the skip of the next instruction according to the
interrupt request flag EXF0, insert the NOP instruction after the SNZ0 instruction.
11 Enable Interrupts
The timer 1 interrupt which is temporarily disabled is enabled.
Interrupt control register V1
b3
b0
â 1ââ
Timer 1 interrupt occurrence enabled
(TV1A instruction)
Interrupt enable flag INTE â1â
All interrupts enabled (EI instruction)
âââ: it can be â0â or â1.â
Timer start by external input
Fig. 2.3.7 Timer start by external input setting example (2)
Rev.2.01 Feb 04, 2005
REJ09B0195-0201
2-31
|
▷ |