![Samsung S3F80P5X User Manual Download Page 250](http://html.mh-extra.com/html/samsung/s3f80p5x/s3f80p5x_user-manual_349401250.webp)
BASIC TIMER and TIMER 0
S3F80P5_UM_ REV1.00
PROGRAMMING TIP — Configuring the Basic Timer
This example shows how to configure the basic timer to sample specifications:
ORG
0100H
RESET
DI
;
Disable
all
interrupts
LD
BTCON,#0AAH ; Disable the watchdog timer
LD CLKCON,#18H
;
Non-divided
clock
CLR
SYM
; Disable global and fast interrupts
CLR
SPL
; Stack pointer low byte
→
"0"
; Stack area starts at 0FFH
•
•
•
SRP
#0C0H
; Set register pointer
→
0C0H
EI
;
Enable
interrupts
•
•
•
MAIN
LD
BTCON,#52H ; Enable the watchdog timer
;
Basic
timer
clock:
f
OSC
/4096
;
Clear
basic
timer
counter
NOP
NOP
•
•
•
JP
T,MAIN
•
•
•
10-10
Summary of Contents for S3F80P5X
Page 10: ......
Page 14: ......
Page 48: ...ADDRESS SPACE S3F80P5_UM_ REV1 00 NOTES 2 22 ...
Page 122: ...INTERRUPT STRUCTURE S3F80P5_UM_ REV1 00 NOTES 5 18 ...
Page 210: ...INSTRUCTION SET S3F80P5_UM_ REV1 00 NOTES 6 88 ...
Page 216: ...CLOCK AND POWER CIRCUITS S3F80P5_UM_ REV1 00 NOTES 7 6 ...
Page 266: ...COUNTER A S3F80P5_UM_ REV1 00 NOTES 12 8 ...
Page 290: ...EMBEDDED FLASH MEMORY INTERFACE S3F80P5_UM_ REV1 00 NOTES 14 18 ...
Page 321: ...DEVELOPMENT TOOLS S3F80P5_UM_ REV1 00 NOTES 19 10 ...