参数资料
型号: ST72621J2B1
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
封装: 0.300 INCH, PLASTIC, DIP-20
文件页数: 128/136页
文件大小: 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
相关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
相关代理商/技术参数
参数描述
ST7263-EMU2 功能描述:仿真器/模拟器 ST7 Emulator Board RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估: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 功能描述: