參數(shù)資料
型號(hào): ST72621J2B1
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
封裝: 0.300 INCH, PLASTIC, DIP-20
文件頁數(shù): 128/136頁
文件大?。?/td> 2475K
代理商: ST72621J2B1
91/136
10-BIT A/D CONVERTER (ADC) (Cont’d)
10.7.3.4 A/D Conversion
Conversion can be performed in One-Shot or Con-
tinuous mode. Continuous mode is typically used
for monitoring a single channel. One-shot mode
should be used when the application requires in-
puts from several channels.
ADC Configuration
The analog input ports must be configured as in-
put, no pull-up, no interrupt. Refer to the I/O
ports chapter. Using these pins as analog inputs
does not affect the ability of the port to be read as
a logic input.
In the ADCCSR register:
– Select the CS[2:0] bits to assign the analog
channel to convert.
ADC One-Shot Conversion mode
In the ADCCSR register:
1.Set the ONE SHOT bit to put the A/D converter
in one shot mode.
2.Set the ADON bit to enable the A/D converter
and to start the conversion. The EOC bit is kept
low by hardware during the conversion.
Note: Changing the A/D channel during conver-
sion will stop the current conversion and start con-
version of the newly selected channel.
When a conversion is complete:
– The EOC bit is set by hardware.
– An interrupt request is generated if the ITE bit
is set.
– The ADON bit is reset by hardware.
– The result is in the ADCDR registers.
To read the 10 bits, perform the following steps:
1. Wait for interrupt or poll the EOC bit
2. Read ADCDRLSB
3. Read ADCDRMSB
The EOC bit is reset by hardware once the AD-
CDRMSB is read.
Figure 52. ADC Block Diagram
CS2
CS1
EOC SPEED ADON
ITE
CS0
ADCCSR
AIN0
AIN1
ANALOG TO DIGITAL
CONVERTER
AINx
ANALOG
MUX
D4
D3
D5
D9
D8
D7
D6
D2
ADCDRMSB
3
DIV 2
fADC
fCPU
D1
D0
ADCDRLSB
DIV 4
0
1
EOC Interrupt
00
0
ONE
SHOT
相關(guān)PDF資料
PDF描述
ST72621J2T1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO20
ST72P621L4M1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO34
ST72623F2M1L 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PDSO34
ST7263BK1B/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP32
ST72652AR4T1/XXX 8-BIT, MROM, MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST7263-EMU2 功能描述:仿真器/模擬器 ST7 Emulator Board RoHS:否 制造商:Blackhawk 產(chǎn)品:System Trace Emulators 工具用于評(píng)估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
ST7265X-EVAL/MS 制造商:STMicroelectronics 功能描述:ST6 EVAL BD - Bulk
ST7265X-EVAL/PFD 制造商:STMicroelectronics 功能描述:USB FLASH EVAL - Bulk
ST7266 制造商:6940 功能描述:ST7266
ST7267C8T1L 制造商:STMicroelectronics 功能描述: