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

nRF52. ADC

by i.got.it 2019. 3. 26.

 

nRF52 ADC 

 

Features

- ADC Type : SAR(Successive Approximation Register) 

- resolution : 8/9/12bit, 14bit with oversampling. 

- speed : 200ksps, 

- multi channel Input : 8 configurable channels, AIN0 ~ AIN7

- reference : VDD/4 or Internal 0.6V reference. 

- continuous sampling

- programmable gain. 1/6, 1/5, 1/4, 1/3, 1/2, 1, 2, 4

- output samples automatically written using EasyDMA

 

 

 

 

 

 

 

 

 

 

ADC Input range 

Input Range = (+-0.6V or +-VDD/4) / gain 

 

example. 

 

1. reference : VDD/4, gain : 1/4 , single-ended. 

Input Range = (VDD/4)/(1/4) = VDD 

 

가능한 입력범위최대값들 : 최대 6*VDD/4 , 5*VDD/4, 4*VDD/4, 3*VDD/4, 2*VDD/4, VDD/4, VDD/2*4, VDD/4*4 최소. 

VDD 가 3 V 이면 4.5, 3.75, 3, 2.25, 1.5, 0.75, 0.375, 0.1875

 

2. reference : internal 0.6V , gain : 1/6, single-ended. 

Input Range = (0.6V)/(1/6) = 3.6V 

가능한 입력범위최대값들 : 최대 3.6, 3, 2.4, 1.8, 1.2, 0.6, 0.3, 0.15  최소. 

 

주의.

위 계산식 에서는 3.6V, 4.5V 가 최대 입력 전압이나 MCU  에 인가된 전원전압 VDD가 5V 인 경우에만 유효하며,  VDD 가 3V, 3.3V 라면  VDD 보다 높은 전압 인가하면 안됨.

 

 

What is the maximum input voltage for the ADC - Nordic Q&A - Nordic DevZone - Nordic DevZone

 

devzone.nordicsemi.com

 

 

ADC 활용 설계시 주의사항. 

- ADC 입력가능한 핀은 임의 지정불가하며 지정된 8개의 핀만 가능하다. 

- nRF52840 의 경우 AIN0~AIN7 로 사용가능한 핀은 아래와 같다. 

 

 AIN0 : P0.02

 AIN1 : P0.03

 AIN2 : P0.04

 AIN3 : P0.05

 AIN4 : P0.28

 AIN5 : P0.29

 AIN6 : P0.30

 AIN7 : P0.31

 

 

 

from : http://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.0.pdf page 346..

 

ADC Code Example 

nRF5 SDK 버전 7.1.0 의 example. 

 

nRF5 SDK v17.1.0: SAADC Example

The SAADC Example demonstrates the use of the analog-to-digital converter (SAADC) peripheral. It uses the SAADC driver. The example initializes the TIMER driver to generate regular compare events. Also, it initializes the PPI driver and allocates one chann

infocenter.nordicsemi.com

 

예제코드 실행 작동 확인 방법. 

개발보드(  PCA10056 ) 에 예제 펌웨어 기록하고, PC 에서 하이퍼터미널  에서 com  포트 오픈하여 실행 상태 확인 가능하다. 

 

 

 

 

포럼글 

 

Simple one shot ADC example - Nordic Q&A - Nordic DevZone - Nordic DevZone

 

devzone.nordicsemi.com

 

 

변환 결과값이 0 이상 값이어야 하는데 음수 나오는 경우 있다. 

 

SAADC negative value - Nordic Q&A - Nordic DevZone - Nordic DevZone

 

devzone.nordicsemi.com

 

 

NRF52832, NRF_SAADC negative values - Nordic Q&A - Nordic DevZone - Nordic DevZone

 

devzone.nordicsemi.com

 

 

 

 

 

 

본 글 포함된 상위 정리글

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

 

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

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

igotit.tistory.com

 


첫등록 : 2019년3월 26일

최종수정 : 2023.01.24

 

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

 


 

 

 

댓글



 

비트코인




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