s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 269

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
F
To set a 30 ms timer interval for TC0, given fxx = 4.19 MHz, follow these steps.
1. Select the timer/counter 0 mode register with a maximum setup time of 62.5 ms (assume the TC0 counter
2. Calculate the TREF0 value:
3. Load the value 79H to the TREF0 register:
clock = fxx/2
PROGRAMMING TIP — Setting a TC0 Timer Interval
30 ms =
TREF0 + 1 =
TREF0 value = 7AH – 1 = 79H
BITS
SMB
LD
LD
LD
LD
10
, and TREF0 is set to FFH):
TREF0 value + 1
EMB
15
EA,#79H
TREF0,EA
EA,#4CH
TMOD0,EA
4.09 kHz
244 µs
30 ms
= 122.9 = 7AH
TIMERS and TIMER/COUNTERS
11-21

Related parts for s3c72m9