HT47C20 Holtek Semiconductor Inc, HT47C20 Datasheet - Page 27

no-image

HT47C20

Manufacturer Part Number
HT47C20
Description
8-Bit Microcontroller
Manufacturer
Holtek Semiconductor Inc
Datasheet
Example for RC type AD converter mode (Timer B overflow):
clr tmrc
clr adcr.1
clr intc1.4
mov a, 00h
mov tmrbl, a
mov a, 00h
mov tmrbh, a
mov a, 00010011b
mov adcr,a
mov a, low (65536-1000)
mov tmrbl, a
mov a, high (65536-1000)
mov tmrbh, a
mov a, 00110000b
mov tmrc, a
p10:
clr wdt
snz intcl.4
jmp p10
clr intcl.4
; set timer mode
; clear timer/event counter interrupt request flag
; give timer A initial value
; RS0~CS0; set RC type ADC mode; set Timer B overflow
; give timer B initial value
; count 1000 time and then overflow
; timer A clock source=T1 and timer on
; polling timer/event counter interrupt request flag
; clear timer/event counter interrupt request flag
; program continue
27
January 18, 2000
HT47C20

Related parts for HT47C20