Timer Operation Guidelines - Samsung S3C2501X User Manual

32-bit risc microprocessor
Table of Contents

Advertisement

S3C2501X

14.5 TIMER OPERATION GUIDELINES

The block diagram in Figure 14-2 shows how the 32-bit timers are configured in the S3C2501X. The following
guidelines apply to the timer functions.
When a timer is enabled, it loads a data value (TDATA) to its count register (TCNT) and begins decrement of the
count register value (TCNT).
When the count register (TCNT) reaches to zero, the associated interrupt is generated. The base value (TDATA)
is then reloaded to the count register (TCNT), and the timer continues decrement of its count register value
(TCNT).
If a timer is disabled, you can write a new base value into its registers (TDATA).
If the timer is halted while it is running, the base value is not automatically re-loaded.
f
SYSCLK
TMOD.TEn
32-Bit Timer Data
Register (TDATAn)
32-Bit Timer Count
Register (TCNTn)
[Down Counter]
TMOD.TMDn
TMOD.TCLRn
Figure 14-2. 32-Bit Timer Block Diagram
Auto
Re-load
TIC
Pulse
Generator
32-BIT TIMERS
INTMASK
Interrupt
Request
Port 22 - 27
IOPCON1
Data Out
TOUTn
14-3

Advertisement

Table of Contents
loading

Table of Contents