본문 바로가기
임베디드.일렉트로닉스/STM32

STM32L4R/S. ADC

by i.got.it 2019. 8. 27.

 

 

STM32L4R/S ADC 

- STM32L4R5VG

 

Features

 

• High-performance features 

– 12, 10, 8 or 6-bit configurable resolution 

– ADC conversion time: Fast channels: 0.188 µs for 12-bit resolution (5.33 Ms/s) Slow channels: 0.238 µs for 12-bit resolution (4.21 Ms/s) 

– ADC conversion time is independent from the AHB bus clock frequency 

– Faster conversion time by lowering resolution: 0.16 µs for 10-bit resolution 

– Manage single-ended or differential inputs 

– AHB slave bus interface to allow fast data handling 

– Self-calibration 

– Channel-wise programmable sampling time 

– Up to four injected channels (analog inputs assignment to regular or injected channels is fully configurable) 

– Hardware assistant to prepare the context of the injected channels to allow fast context switching 

– Data alignment with in-built data coherency – Data can be managed by GP-DMA for regular channel conversions 

– Data can be routed to DFSDM for post processing 

– 4 dedicated data registers for the injected channels 

 

• Oversampler 

– 16-bit data register 

– Oversampling ratio adjustable from 2 to 256x 

– Programmable data shift up to 8-bit 

 

• Low-power features 

– Speed adaptive low-power mode to reduce ADC consumption when operating at low frequency 

– Allows slow bus frequency application while keeping optimum ADC performance (0.188 µs conversion time for fast channels can be kept whatever the AHB bus clock frequency) 

– Provides automatic control to avoid ADC overrun in low AHB bus clock frequency application (auto-delayed mode) 

 

• Several external analog input channel 

– Up to 5 fast channels from GPIO pads 

– Up to 11 slow channels from GPIO pads 

 

• In addition, there are several internal dedicated channels 

– The internal reference voltage (VREFINT) 

– The internal temperature sensor (VSENSE) 

– The V BAT monitoring channel (VBAT/3) 

– DAC1 and DAC2 internal channels, connected to ADC1 

 

• Start-of-conversion can be initiated: 

– by software for both regular and injected conversions 

 by hardware triggers with configurable polarity (internal timers events or GPIO input events) for both regular and injected conversions 

 

• Conversion modes 

– The ADC can convert a single channel or can scan a sequence of channels 

– Single mode converts selected inputs once per trigger 

– Continuous mode converts selected inputs continuously 

– Discontinuous mode 

 

• Interrupt generation at ADC ready, the end of sampling, the end of conversion (regular or injected), end of sequence conversion (regular or injected), analog watchdog 1, 2 or 3 or overrun events 

 

• 3 analog watchdogs 

 

• ADC input range: VREF– ≤ VIN ≤ VREF

 

 

Function Block 

 

ADC1 Connectivity 

 

 

 

 

 

 

 

 

from :  RM0432. STM32L4Rxxx and STM32L4Sxxx  페이지 572~

 

ADC 입력 가용핀 

- 통상 ADC 입력핀은 임의 핀에 할당되지 못하고 지정된 핀들이 있다. 이를 확인하기 위해서 STM32CubeMX를 실행하여 ADC 활성화 했을때 어떤 핀들이 사용되는지 보면된다. 

 

결론적으로 아래 핀들은 ADC 용으로 사용가능하다. 이핀들만 가능한것은 아니고 다른 페리페랄 활성화 시키다보면 다른 핀으로 할당될수도 있다. 임의 핀들에 기능 할당 가능한것이 아님을 숙지하고 있음된다. 

 

 

아래 동영상은 STM32CubeMX 에서 ADC 활성화 하는 과정 상세. 

 

 

 

 

 

 본 글 포함된 상위 정리글

 

 https://igotit.tistory.com/244 의 STM32

 

 


첫등록 : 2019년8월 27일

최종수정 : 

 

본 글 단축주소 : https://igotit.tistory.com/2283

 


 

'임베디드.일렉트로닉스 > STM32' 카테고리의 다른 글

STM32L4R/S. 전원공급  (0) 2019.08.27
STM32L4R/S. DAC  (0) 2019.08.27
STM32WB55CG. dual core MCU 블루투스 5.0  (0) 2019.08.26
STM32L432. 32핀 5x5mm . 고속 . 저전력 . USB .  (0) 2019.08.26
STM32F401 개발보드.  (0) 2019.08.26

댓글



 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5