參數(shù)資料
型號: VMX51C900
廠商: Electronic Theatre Controls, Inc.
英文描述: Versa Mix 8051 MCU with LCD Controller and ADC
中文描述: 8051反之亦然混合與LCD控制器和ADC的微控制器
文件頁數(shù): 40/55頁
文件大小: 2395K
代理商: VMX51C900
VMX51C900
______________________________________________________________________________________________
www.ramtron.com
page 40 of 55
ADC Interrupt
Like other peripherals on the VMX51C900, the A/D
converter can generate an interrupt to the processor
once the conversion is completed. The interrupt vector
associated with the A/D converter is 04Bh.
The IP1, IEN1 and IFI special function registers control
the ADC interrupt.
To activate the ADC interrupt, the ADCIE bit of the
IEN1 register must be set, as well as the general
interrupt bit, EA bit 7 of the IEN0 register.
T
ABLE
48:
I
NTERRUPT
E
NABLE
R
EGISTER
(IEN1,
A9
H
)
7
-
3
ADCIE
Bit
Mnemonic
7:4
-
3
ADCIE
6
-
2
-
5
-
1
-
4
-
0
-
Description
Unused
ADC Interrupt Enable
0 = ADC interrupt Disabled
1 = ADC interrupt Enabled
Unused
2:0
-
By default, the ADC interrupt is set to low priority.
However, setting the ADCIP bit of the IP1 register will
give the ADC higher priority.
T
ABLE
49:
I
NTERRUPT
P
RIORITY
R
EGISTER
(IP1,
B9
H
)
7
-
3
ADCIP
Bit
Mnemonic
7:4
-
3
ADCIP
6
-
2
-
5
-
1
-
4
-
0
-
Description
Unused
ADC Interrupt Priority
0 = ADC interrupt is Low Priority
1 = ADC interrupt is High Priority
Unused
2:0
-
When the ADC interrupt is authorized and a
conversion is completed, the ACDIF flag of the IF1
register will be set to 1. Once the ADC interrupt routine
is executed, the ADCIF will be automatically cleared.
T
ABLE
50:
I
NTERRUPT
F
LAG
R
EGISTER
(IF1,
AA
H
)
7
-
3
ADCIF
Bit
Mnemonic
7:4
-
3
ADCIF
6
-
2
-
5
-
1
-
4
-
0
-
Description
Unused
ADC Interrupt Flag
Will be set to 1 if ADC interrupt
occurred. Cleared automatically when
the interrupt is serviced.
Unused
2:0
-
ADC Initialization & Use (by Interrupt)
The following code example demonstrates the basic
steps for configuring the VMX51C900 A/D converter
and use the ADC interrupt to retrieve conversion
results. The ADCEND bit of the ADCCTRL register can
be used to monitor when the A/D conversion process
is terminated.
;*** RESET VECTOR
ORG 0000H
LJMP START
;*** ADC INTERRUPT JUMP VECTOR ***
ORG 04BH
LJMP IRQADC
;JUMP TO ADC INTERRUPT ROUTINE
;*** MAIN PROGRAM START ***
ORG 0100H
START:
MOV SP,#0C0H
;INITIALISE STACK POINTER
;*** INITIALIZE THE A/D CONVERTER
MOV P3IOCTRL,#01000000B
ADCGO:
MOV ADCCTRL,#01001000B
;CONFIG P3.6 -> ADCIN2
;CONFIG ADCCTRL
;7 ADCEND = 0
;6 ADCCONT = CONT CONV.
;5:4 ADCCLK = Fosc/8
;3:2 ADCCH = ADCI2
;1:0 UNUSED
;WITH Fosc = 11.059MHz
;CONV RATE 69.1KHz
;***************************
;* ADC INTERRUPT
;***************************
IRQADC:
MOV ADCVALUE,#00H
MOV IEN1,#00001000B
SETB EA
(…)
;ENABLE ADC INTERRUPT
;ENABLE GENERAL INTERRUPTS
MOV ADCVALUE,ADCDATA
RETI
;RETRIEVE ADCDATA
相關(guān)PDF資料
PDF描述
VN0104 N-Channel Enhancement-Mode Vertical DMOS FET(擊穿電壓40V,N溝道增強(qiáng)型垂直DMOS結(jié)構(gòu)場效應(yīng)管)
VN0104 N-Channel Enhancement-Mode Vertical DMOS FET
VN0104N3 N-Channel Enhancement-Mode Vertical DMOS FET
VN0109NE N-Channel Enhancement-Mode Vertical DMOS Power FETs Quad Array
VN0116ND TRANSISTOR | MOSFET | N-CHANNEL | 160V V(BR)DSS | CHIP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
VMX51C900-25-L 功能描述:8位微控制器 -MCU 8K+256 25MHz 5V RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
VMX51C900-25-LG 功能描述:8位微控制器 -MCU 8K+256 25MHz 5V RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
VMX51C900-25-L-G 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Versa Mix 8051 MCU with LCD Controller and ADC
VMX51C900-25-P 功能描述:8位微控制器 -MCU 8K+256 25MHz 5V RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
VMX51C900-25-PG 功能描述:8位微控制器 -MCU 8K+256 25MHz 5V RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT