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

STM32. L4x6. ADC ( Analog to Digital Converter )

by 리치굿맨 2018. 12. 8.

 

 

 

 

개요. STM32L4x6 ADC

 
 
3개의 ADC : ADC1, ADC2, ADC3 
 
ADC 타입, 해상도 : SAR, 12bit. 
ADC 채널 : 20 multiplexed channels.
 
특징들. 
 
• High-performance features 
 – Up to 3 ADCs, out of which two of them can operate in dual mode: 
      ADC1 is connected to 16 external channels + 3 internal channels 
      ADC2 is connected to 16 external channels + 2 internal channels 
      ADC3 is connected to 12 external channels + 4 internal channels 
 – 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 per ADC 
  – 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), connected to ADC1 
  – The internal temperature sensor (VSENSE), connected to ADC1 and ADC3 
  – The V BAT monitoring channel (VBAT/3), connected to ADC1 and ADC3
 – DAC1 internal channels, connected to ADC2 and ADC3
 
 • 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
  – Each 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 • Dual ADC mode for ADC1 and 2
 
 • 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 per ADC
 • ADC input range: VREF– ≤ VIN ≤ VREF+
 

본 글의 정보소스 :  RM0351 STM32L4x6 Reference Manual page 504~

 

 

 

 

 

 

 

 

 

ADC 기능블럭.

 
 

 

 
 

 

 

Channel 입력단 상세

 

 

 

 

 

 

 

 

ADC 실전 활용예

 

STM32. ADC 활용 방법

개요 STM32 의 내장 ADC 활용하는 방법. 본 설명에서의 구체적인 상황. 타겟칩 : STM32L4x6 페리페랄 : ADC 타겟보드 : D1P123R1 개발 IDE : KEIL MDK-ARM 혹은 SW4STM32 모두 가능. STM32CubeMX 기반하여 ADC 설..

igotit.tistory.com

 

 

 

상위 정리

 

 

STM32. nRF52. ESP32. EFM8. EFM32. PSoC 활용 정리.

STM32. nRF52. ESP32. EFM8. EFM32. PSoC 총정리 제조사  칩  주요특징  실리콘랩 8bit MCU EFM8 시리즈 32bit  EFM32 시리즈  EFM8 싸다.  STM STM32 .  최고 항상 만족.  Cypress pSoC  pSoC6 은 기대..

igotit.tistory.com

 

 


첫 등록 : 2018.12.08

최종 수정 : 

단축 주소 : https://igotit.tistory.com/1961

 

 

 

태그

댓글0


   
현물 |선물 인버스 |선물 USDT     현물 | 선물 USDT |봇제작툴/카피트레이딩     현물 |선물 인버스 |선물 USDT     선물 인버스 |선물 USDT