| 数据搜索系统,热门电子元器件搜索 |
|
AN1809 数据表(PDF) 3 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1809 数据表(HTML) 3 Page - STMicroelectronics |
|
3 / 8 page ![]() 3/8 STR71x ADC Driving an Analog Keyboard interrupt will be generated if all interrupt bits and all Data Available flags in the ADC_CSR are set. The clock configuration of the STR71x converter is used to define the oversampling fre- quency which clocks the modulator of the Sigma-Delta converter. This frequency is pro- grammed basing on the fPCLK2 frequency and the Sampling frequency. The oversampling rate is obtained by configuring the 12-bit value of the prescaler register. The value to write in the Converter prescaler register is: ADC_CPR = (RCCU_FrequencyValue(RCCU_PCLK)/(Adc12_clk*512*8)) The real factor, by which the input frequency will be multiplied to produce the oversampling frequency, is twice the prescaler register value. 1.2 I/O CONFIGURATION The STR71x Analog to Digital Converter provides four analog input pins for connecting dif- ferent analog signals. These pins are internally multiplexed to use the same Sigma-Delta logic. Depending on the conversion mode (Continuous or Single Channel), you can use either the four analog inputs or only one selected pin. If you are using the Single Channel mode, you can select a pin by writing the channel number in the A[1:0] bits in the Control Status Reg- ister(ADC_CSR). These pins are mapped on the pins of GPIO port 1(P1.1, P1.2, P1.3, P1.4). To use the port pins as analog inputs, you must configure them as High impedance-Analog In- puts by writing the appropriate values in to the PC0, PC1 and PC2 registers of GPIO Port 1. 1.3 ANALOG KEYBOARD The analog keyboard is formed by a number of keys connected to resistive dividers; with a pull-up resistor. In the analog keyboard each key is associated with a voltage. R0-->R14: serial resistors through which keys will be connected to the analog input. R0 R1 R13 R14 Rup key0 key1 key14 key15 Keyboard To Vdd To Analog input Vkey To Vss |
|
|
链接网址 |
| 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 |