![Samsung S3P80C5 Скачать руководство пользователя страница 233](http://html1.mh-extra.com/html/samsung/s3p80c5/s3p80c5_user-manual_3993739233.webp)
TIMER 1
S3P80C5/C80C5/C80C8
11-2
TIMER 1 OVERFLOW INTERRUPT
Timer 1 can be programmed to generate an overflow interrupt (IRQ1, F4H) whenever an overflow occurs in the
16-bit up counter. When you set the timer 1 overflow interrupt enable bit, T1CON.2, to “1”, the overflow interrupt
is generated each time the 16-bit up counter reaches ‘FFFFH’. After the interrupt request is generated, the
counter value is automatically cleared to ‘00H’ and up counting resumes. By writing a “1” to T1CON.3, you can
clear/reset the 16-bit counter value at any time during program operation.
TIMER 1 MATCH INTERRUPT
Timer 1 can also be used to generate a match interrupt (IRQ1, vector F6H) whenever the 16-bit counter value
matches the value that is written to the timer 1 reference data registers, T1DATAH and T1DATAL. When a
match condition is detected by the 16-bit comparator, the match interrupt is generated, the counter value is
cleared, and up counting resumes from ‘00H’.
In match mode, program software can poll the timer 1 match interrupt pending bit, T1CON.0, to detect when a
timer 1 match interrupt pending condition exists (T1CON.0 = "1"). When the interrupt request is acknowledged by
the CPU and the service routine starts, the interrupt service routine for vector F6H must clear the interrupt
pending condition by writing a “0” to T1CON.0.
Interrupt
Enable/Disable
(T1CON.2)
Pending
(T1CON.0)
CTL
T1CON.5
T1CON.4
Match Signal
T1CON.3
IRQ1(T1INT)
R (Clear)
CLK
Match
Timer 1 Data High/Low
Buffer Register
Timer 1 High/Low
Buffer Register
16-Bit Comparator
16-Bit UP Counter
(Read-Only)
Figure 11-1. Simplified Timer 1 Function Diagram: Interval Timer Mode
Содержание S3P80C5
Страница 2: ...S3P80C5 C80C5 C80C8 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Страница 5: ......
Страница 13: ......
Страница 15: ......
Страница 17: ......
Страница 19: ......
Страница 49: ...ADDRESS SPACES S3P80C5 C80C5 C80C8 2 20 NOTES ...
Страница 197: ...INSTRUCTION SET S3P80C5 C80C5 C80C8 6 88 NOTES ...
Страница 201: ...CLOCK CIRCUITS S3P80C5 C80C5 C80C8 7 4 NOTES ...
Страница 237: ...TIMER 1 S3P80C5 C80C5 C80C8 11 6 NOTES ...
Страница 245: ...COUNTER A S3P80C5 C80C5 C80C8 12 8 NOTES ...
Страница 255: ......
Страница 257: ......
Страница 259: ......
Страница 261: ......
Страница 263: ...BOOK SPINE TEXT SAMSUNG Logo S3P80C5 C80C5 C80C8 Microcontrollers User s Manual Rev 1 May 2002 ...