Samsung S3C6400X User Manual page 1030

Table of Contents

Advertisement

S3C6400
RISC MICROPROCESSOR
BASIC TIMER OPERATION
s tart bit=1
timer is started
TCMPn
TCNTn
3
TCNTBn=3
TCMPBn=1
manual update=1
auto-reload=1
TOUTn
A timer (except the timer channel 5) has TCNTBn, TCNTn, TCMPBn and TCMPn. TCNTBn and TCMPBn are
loaded into TCNTn and TCMPn when the timer reaches 0. When TCNTn reaches 0, the interrupt request will
occur if the interrupt is enabled. (TCNTn and TCMPn are the names of the internal registers. The TCNTn
register can be read from the TCNTOn register)
AUTO-RELOAD AND DOUBLE BUFFERING
The Timers have a double buffering feature, which can change the reload value for the next timer operation
without stopping the current timer operation. Though the new timer value is set, current timer operation is
completed successfully.
The timer value can be written into TCNTBn (Timer Count Buffer register) and the current counter value of the
timer can be read from TCNTOn (Timer Count Observation register). If TCNTBn is read, the read value is the
reload value for the next timer duration not the current state of the counter.
TCNTn=TCMPn
1
3
2
1
TCNTBn=2
interrupt request
TCMPBn=0
manual update=0
auto-reload=1
Figure 32-5: Timer operations
Preliminary product information describe products that are in development,
for which full characterization data and associated errata are not yet available.
Specifications and information herein are subject to change without notice.
auto-reload
TCNTn=TCMPn
0
0
2
1
auto-reload=0
interrupt request
Pulse Width Modulation Timer
timer is stopped.
0
0
command
status
32-7

Advertisement

Table of Contents
loading

Table of Contents