![Samsung S3C80M4/F80M4 Скачать руководство пользователя страница 214](http://html1.mh-extra.com/html/samsung/s3c80m4-f80m4/s3c80m4-f80m4_user-manual_3996174214.webp)
8-BIT TIMER 0
S3C80M4/F80M4
11-2
TIMER 0 CONTROL REGISTER (T0CON)
You use the timer 0 control register, T0CON, to
— Enable the timer 0 operating mode (interval timer)
— Select the timer 0 input clock frequency
— Clear the timer 0 counter, T0CNT
— Enable the timer 0 interrupt
— Clear timer 0 interrupt pending condition
T0CON is located in set 1, Bank 0 at address E6H, and is read/write addressable using Register addressing
mode.
A reset clears T0CON to '00H'. This sets timer 0 to normal interval timer mode, selects an input clock frequency of
fxx/1024, and disables all timer 0 interrupts. You can clear the timer 0 counter at any time during normal operation
by writing a "1" to T0CON.3.
To enable the timer 0 interrupt (IRQ0, vector EEH), you must write T0CON.2, and T0CON.1 to "1". To detect an
interrupt pending condition, when T0INT is disabled, the application program polls pending bit, T0CON.0. When
a "1" is detected, a timer 0 interrupt is pending. When the interrupt request has been serviced, the pending
condition must be cleared by software by writing a "0" to the timer 0 interrupt pending bit, T0CON.0.
Timer 0 Control Register (T0CON)
E6H, Set 1, Bank 0, R/W
.7
.6
.5
.4
.3
.2
.1
.0
MSB
LSB
Timer 0 match interrupt enable bit:
0 = DIsable interrupt
1 = Enable interrupt
Timer 0 interrupt pending bit:
0 = No interrupt pending
0 = Clear pending bit(when write)
1 = Interrupt is pending
Timer 0 counter clear bit:
0 = No effect
1 = Clear the timer 0 counter (when write)
Timer 0 input clock selection bits:
000 = f
XX
/1024
001 = f
XX
/256
010 = f
XX
/64
011 = fxx/8
100 = fxx
101 = External clock (T0CLK) falling edge
110 = External clock (T0CLK) rising edge
111 = Counter stop
Timer 0 counter enable selection bit:
0 = Disable counting operation
1 = Disable counting operation
Not uesed for the S3C80M4
Figure 11-1. Timer 0 Control Register (T0CON)
Содержание S3C80M4/F80M4
Страница 1: ...S3C80M4 F80M4 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Страница 44: ...ADDRESS SPACES S3C80M4 F80M4 2 20 NOTES ...
Страница 84: ...CONTROL REGISTERS S3C80M4 F80M4 4 26 NOTES ...
Страница 102: ...INTERRUPT STRUCTURE S3C80M4 F80M4 5 18 NOTES ...
Страница 190: ...INSTRUCTION SET S3C80M4 F80M4 6 88 NOTES ...
Страница 202: ...RESET and POWER DOWN S3C80M4 F80M4 8 6 NOTES ...
Страница 216: ...8 BIT TIMER 0 S3C80M4 F80M4 11 4 NOTES ...
Страница 220: ...8 BIT PULSE WIDTH MODULATION S3C80M4 F80M4 12 4 NOTES ...
Страница 230: ...ELECTRICAL DATA S3C80M4 F80M4 13 10 NOTES ...
Страница 248: ...DEVELOPMENT TOOLS S3C80M4 F80M4 16 8 NOTES ...
Страница 249: ...This datasheet has been downloaded from www DatasheetCatalog com Datasheets for electronic components ...