| 전자부품 데이터시트 검색엔진 |
|
AN2658 데이터시트(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2658 데이터시트(HTML) 21 Page - STMicroelectronics |
|
21 / 23 page ![]() AN2658 ADC conversion triggered by TIM1 timer Doc ID 14152 Rev 2 21/23 7 ADC conversion triggered by TIM1 timer 7.1 Overview This section describes how to start and ADC conversion triggered by the TIM1 trigger output. There are several ways of starting ADC conversions in the STM8 including any event that can be generated by the multipurpose timer (TIM1). This gives the you a large choice when implementing your application. 7.2 Hardware description Figure 14 shows a typical connection between the STM8 AIN9 pin and a potentiometer. This allows you to test the ADC by changing the input voltage to be converted. The conversion result is displayed on four LEDs. This example hardware is implemented in the STM8 evaluation board STM8/128-EVAL. 7.3 Firmware description The STM8 firmware library includes the ADC driver that supports the ADC through a set of functions. ADC is configured in continuous conversion mode with interrupt enabled. The conversion is triggered by the TIM1 TRGO event. In the interrupt routine, the range of the converted value defines the number of LEDs to light up each time a conversion occurs. This firmware is provided as ADC example 2 in the STM8 firmware library, available from the STMicroelectronics microcontroller website. |
|
|
링크 URL |
| 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 |