Timer Initialization Using Manual Update Bit And Inverter Bit - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

PWM TIMER

2.4 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.
12-6
NOTE
S3C2416X RISC MICROPROCESSOR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents