Samsung S3P80C5 User Manual page 229

8-bit cmos microcontrollers
Table of Contents

Advertisement

BASIC TIMER and TIMER 0
F F
PROGRAMMING TIP — Configuring the Basic Timer
This example shows how to configure the basic timer to sample specifications:
ORG
RESET
DI
LD
LD
CLR
CLR
SRP
EI
MAIN
LD
NOP
NOP
JP
10-8
0100H
BTCON,#03H
CLKCON,#18H
SYM
SPL
#0C0H
BTCON,#02H
T,MAIN
; Disable all interrupts
; Enable the watchdog timer
; Non-divided clock
; Disable global and fast interrupts
; Stack pointer low byte ← "0"
; Stack area starts at 0FFH
; Set register pointer ← 0C0H
; Enable interrupts
; Enable the watchdog timer
; Basic timer clock: f
OSC
; Clear basic timer counter
S3P80C5/C80C5/C80C8
/4096

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c80c5S3c80c8

Table of Contents