HT45R37V Holtek Semiconductor Inc., HT45R37V Datasheet - Page 34

no-image

HT45R37V

Manufacturer Part Number
HT45R37V
Description
C/r-f Type 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT45R37V
Manufacturer:
HOLTEK
Quantity:
3 200
Programming Example
The following example shows the principles of how the C/R to F converter function is programmed:
External RC oscillation converter mode example program - Timer A overflow:
clr RCOCCR
mov a, 00000010b
mov RCOCR,a
clr mfic0.1
clr mfic0.5
mov a, low (65536-1000) ; Give timer A initial value
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 mfic0.5
jmp p10
clr mfic0.5
Rev. 1.00
; Enable External RC oscillation mode and set Timer A overflow
; Clear External RC Oscillation Converter interrupt request flag
; 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
34
SYS
/4 and timer on
October 20, 2009
HT45R37V

Related parts for HT45R37V