HT45R34 Holtek Semiconductor, HT45R34 Datasheet - Page 16

no-image

HT45R34

Manufacturer Part Number
HT45R34
Description
C/R to F Type 8-Bit OTP MCU
Manufacturer
Holtek Semiconductor
Datasheet
www.DataSheet4U.com
External RC oscillation converter mode example program - Timer A overflow:
clr RCOCCR
mov a, 00000010b
mov RCOCR,a
clr intc1.4
mov a, low (65536-1000)
mov tmral, a
mov a, high (65536-1000)
mov tmrah, a
mov a, 00h
mov tmrbl, a
mov a, 00h
mov tmrbh, a
mov a, 00110000b
mov RCOCCR, a
p10:
clr wdt
snz intc1.4
jmp p10
clr intc1.4
Rev. 1.20
; Enable External RC oscillation mode and set Timer A overflow
; Clear External RC Oscillation Converter interrupt request flag
; Give timer A initial value
; Timer A count 1000 time and then overflow
; Give timer B initial value
; Timer A clock source=f
; Polling External RC Oscillation Converter interrupt request flag
; Clear External RC Oscillation Converter interrupt request flag
; Program continue
External RC Oscillation Converter
16
SYS
/4 and timer on
October 15, 2007
HT45R34

Related parts for HT45R34