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

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
TIMERS and TIMER/COUNTERS
F
To set a 30 ms timer interval for TC1, given fxx = 4.19 MHz, follow these steps:
1. Select the timer/counter 1 mode register with a maximum setup time of 16 seconds;
2. Calculate the TREF1 value:
3. Load the value 79H to the TREF1 register:
11-34
assume the TC1 counter clock = fxx/2
PROGRAMMING TIP — Setting a TC1 Timer Interval
30 ms =
TREF1 + 1 =
TREF1 value = 7AH – 1 = 79H
BITS
SMB
LD
LD
LD
LD
LD
LD
TREF1 value + 1
EMB
15
EA,#79H
TREF1A,EA
EA,#00H
TREF1B,EA
EA,#0CCH
TMOD1A,EA
4.09 kHz
244 µs
30 ms
= 122.9 = 7AH
10
and TREF1 is set to FFFFH.
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)

Related parts for s3c72m9