![Samsung S3C8248 Скачать руководство пользователя страница 228](http://html1.mh-extra.com/html/samsung/s3c8248/s3c8248_user-manual_3975904228.webp)
S3C8248/C8245/P8245/C8247/C8249/P8249
8-BIT TIMER A/B
11-3
TIMER A CONTROL REGISTER (TACON)
You use the timer A control register, TACON, to
— Select the timer A operating mode (interval timer, capture mode, or PWM mode)
— Select the timer A input clock frequency
— Clear the timer A counter, TACNT
— Enable the timer A overflow interrupt or timer A match/capture interrupt
— Clear timer A match/capture interrupt pending conditions
TACON is located in set 1, Bank 0 at address EDH, and is read/write addressable using Register addressing
mode.
A reset clears TACON to '00H'. This sets timer A to normal interval timer mode, selects an input clock frequency
of fxx/1024, and disables all timer A interrupts. You can clear the timer A counter at any time during normal
operation by writing a "1" to TACON.3.
The timer A overflow interrupt (TAOVF) is interrupt level IRQ0 and has the vector address E2H. When a timer A
overflow interrupt occurs and is serviced by the CPU, the pending condition is cleared automatically by hardware.
Timer A Control Register
EDH, Set 1, Bank 0, R/W, RESET; 00H
.7
.6
.5
.4
.3
.2
.1
.0
MSB
LSB
Timer A match/capture interrupt
enable bit:
0 = DIsable interrupt
1 = Enable interrupt
Timer A match/capture interrupt
pending bit:
0 = No interrupt pending
0 = Clear pending bit (write)
1
=
Interrupt is pending
Timer A overflow interrupt enable
0 = Disable overflow interrupt
1 = Enable overflow interrupt
Timer A counter clear bit:
0 = No affect
1 = Clear the timer A counter
(when write)
Timer A input clock selection bits:
00 = f
XX
/1024
01 = f
XX
/256
10 = f
XX
/64
11 = External clock (TACLK)
Timer A operating mode selection bits:
00 = Interval mode (TAOUT mode)
01 = Capture mode (capture on rising edge,
Counter running, OVF can occur)
10 = Capture mode (Capture on falling edge,
Counter running, OVF can occur)
11 = PWM mode (OVF interrupt can occur)
NOTE:
Pending bit of overflow interrupt is located in INTPND (D2H, set1) register.
Figure 11-1. Timer A Control Register (TACON)
Содержание S3C8248
Страница 31: ...ADDRESS SPACES S3C8248 C8245 P8245 C8247 C8249 P8249 2 20 NOTES ...
Страница 107: ...INTERRUPT STRUCTURE S3C8248 C8245 P8245 C8247 C8249 P8249 5 18 NOTES ...
Страница 195: ...INSTRUCTION SET S3C8248 C8245 P8245 C8247 C8249 P8249 6 88 NOTES ...
Страница 221: ...I O PORTS S3C8248 C8245 P8245 C8247 C8249 P8249 9 16 NOTES ...
Страница 245: ...16 BIT TIMER 0 1 S3C8248 C8245 P8245 C8247 C8249 P8249 12 10 NOTES ...
Страница 249: ...WATCH TIMER S3C8248 C8245 P8245 C8247 C8249 P8249 13 4 NOTES ...
Страница 267: ...A D CONVERTER S3C8248 C8245 P8245 C8247 C8249 P8249 15 6 NOTES ...
Страница 299: ...S3P8245 P8249 OTP S3C8248 C8245 P8245 C8247 C8249 P8249 21 8 NOTES ...
Страница 307: ......
Страница 309: ......
Страница 311: ......
Страница 313: ......
Страница 315: ...BOOK SPINE TEXT SAMSUNG Logo S3C8248 C8245 P8245 C8247 C8249 P8249 Microcontrollers User s Manual Rev 3 March 2002 ...