EM78P458/459
OTP ROM
;
;
-
-
IOCS ADRUN ADPD ADIS2 ADIS1 ADIS0
ADCONC== 0xA
GCON == 0x9
7
6
5
4
3
2
1
0
; VREFS
X
X
IMS2 IMS1 IMS0 CKR1 CKR0
;
7
6
5
4
3
2
1
0
; OPE2 OPE1 G22 G21 G20 G12 G11 G10
;To define bits
;In ADCONR
ADRUN == 0x4
ADPD == 0x3
; ADC is executed as the bit is set
; Power Mode of ADC
ORG 0
; Initial address
;
JMP INITIAL
ORG 0x08
; Interrupt vector
(User program)
CLR R_F
; To clear the ADCIF bit
BS ADCONR, ADRUN
RETI
; To start to execute the next AD conversion if necessary
INITIAL:
MOV A, @0BXXXX1XXX
IOW C_INT
; Enable the interrupt function of ADC, “X” by application
; Interrupt disabled:<6>
MOV A, @0xXX
CONTW
MOV A, @0B00000000
IOW ADCONC
; To employ Vdd as the reference voltage, to define P60 as
; an analog input and set clock rate at fosc/4
En_ADC:
This specification is subject to change without prior notice.
36
06.25.2004 (V1.4)