![Samsung S3P80C5 User Manual Download Page 229](http://html1.mh-extra.com/html/samsung/s3p80c5/s3p80c5_user-manual_3993739229.webp)
BASIC TIMER and TIMER 0
S3P80C5/C80C5/C80C8
10-8
F
F
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,#03H
; Enable 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,#02H
; Enable the watchdog timer
; Basic timer clock: f
OSC
/4096
; Clear basic timer counter
NOP
NOP
•
•
•
JP
T,MAIN
•
•
•
Summary of Contents for S3P80C5
Page 2: ...S3P80C5 C80C5 C80C8 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Page 5: ......
Page 13: ......
Page 15: ......
Page 17: ......
Page 19: ......
Page 49: ...ADDRESS SPACES S3P80C5 C80C5 C80C8 2 20 NOTES ...
Page 197: ...INSTRUCTION SET S3P80C5 C80C5 C80C8 6 88 NOTES ...
Page 201: ...CLOCK CIRCUITS S3P80C5 C80C5 C80C8 7 4 NOTES ...
Page 237: ...TIMER 1 S3P80C5 C80C5 C80C8 11 6 NOTES ...
Page 245: ...COUNTER A S3P80C5 C80C5 C80C8 12 8 NOTES ...
Page 255: ......
Page 257: ......
Page 259: ......
Page 261: ......