Samsung S3C84E5 Microphone User Manual


 
S3C84E5/C84E9/P84E9 8-BIT TIMER A/B
11-11
F PROGRAMMING TIP Using the Timer A
ORG 0000h
VECTOR 0C0h,TAMC_INT
VECTOR 0C2h,TAOV_INT
ORG 0100h
INITIAL:
LD SYM,#00h ; Disable Global/Fast interrupt SYM
LD IMR,#00000010b ; Enable IRQ1 interrupt
LD SPH,#00000000b ; Set stack area
LD SPL,#00000000b
LD BTCON,#10100011b ; Disable watch-dog
LD P0CONH,#0C0H ; Enable TAOUT output
SB1
LD TADATA,#80h
LD TACON,#01001010b ; Match interrupt enable
; 6.55 ms duration (10 MHz x'tal)
SB0
EI
MAIN:
MAIN ROUTINE
JR T,MAIN
TAMC_INT:
Interrupt service routine
IRET
TAOV_INT:
Interrupt service routine
IRET
.END