Samsung S3C2451X User Manual page 317

Risc microprocessor
Table of Contents

Advertisement

S3C2451X RISC MICROPROCESSOR
TIMER INITIALIZATION USING MANUAL UPDATE BIT AND INVERTER BIT
An auto reload operation of the timer occurs when the internal down-counter(TCNTn) reaches 0. So, a starting
value of the TCNTn has to be defined by the user in advance. In this case, the starting value has to be loaded by
the manual update bit. The following steps describe how to start a timer:
1) Write the initial value into TCNTBn and TCMPBn.
2) Set the manual update bit of the corresponding timer. It is recommended that you configure the inverter on/off
bit. (Whether use inverter or not).
3) Set start bit of the corresponding timer to start the timer (and clear the manual update bit, configure the
inverter on/off bit as you want).
If the timer is stopped by force, the TCNTn retains the counter value and is not reloaded from TCNTBn. If a new
value has to be set, perform manual update.
Whenever TOUT inverter on/off bit is changed, the TOUTn logic value will also be changed whether the
timer runs. Therefore, it is desirable that the inverter on/off bit is configured with the manual update bit.
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.
NOTE:
PWM TIMER
13-5

Advertisement

Chapters

Table of Contents
loading

Table of Contents