| 数据搜索系统,热门电子元器件搜索 |
|
ST7262 数据表(PDF) 89 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7262 数据表(HTML) 89 Page - STMicroelectronics |
|
89 / 132 page ![]() ST7262 89/132 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 51. 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 0 0 0000 ONE SHOT |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |