Configuring The Basic Timer - Samsung S3C80A5B User Manual

8-bit cmos
Table of Contents

Advertisement

BASIC TIMER and TIMER 0
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
/4096
S3C80A5B

Advertisement

Table of Contents
loading

Table of Contents