타이머수량.
nRF52840 인 경우 5개 : Timer0, Timer1, Timer2, Timer3, Timer4.
타이머 기능블럭.

타이머는 HFCLK (high frequency clock source) 와 4비트 프리스케일러로 구동된다.
PCLK1M, PCLK16M
- Timer 내부 Prescaler 의 설정값이 1MHz 이하인 경우 자동으로 PCLK1M 이 선택된다. (전력 절감목적)
PRESCALER
- 10비트폭. /2^n 의 n 값 설정에 해당. 예. 4를 설정하면 /2^4 = /16
START, STOP.
START 에 의하여 시작되고, STOP 에서 포즈된다. STOP 이후 다시 START 하면 이전 상태(STOP 시점의 상태)이후 부터 타이머 재개한다.
BITMODE
timer bit width 최대값 설정
레지스터 주소 : 0x58 , 0 : 16bit , 1: 8bit, 2 : 24bit, 3: 32bit.
CAPTURE, COMPARE
- 레지스터 CAPTURE[n] 트리거되면 카운터 값이 레지스터 CC[n] 에 복사된다.
- 카운터값이 CC[n] 과 동일하면 COMPARE[n] 이벤팅 된다.
PPI
- Timer event 로 다른 Peripheral 의 task 트리거 가능.
- Timer event/task 로 GPIO 로 주기적인 출력 혹은 PWM 생성시 활용가능. 동시 사용가능한 수량은 GPIOTE 채널 수량에 준한다.
활용상 주의사항.
PRESCALER , BITMODE 값 설정시 STOP 상태에서 해야 정확한 동작을 보장하며, START 상태에서 값 설정시 확정적 작동 보장안됨.
from : http://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.0.pdf 페이지 420
Timer Example Codes
nRF5 SDK v17.1.0: Timer Example
The Timer Example demonstrates the use of the timer peripherals. This example replaces the less accurate busy delay in the Blinky Example with a more accurate hardware timer based delay. When the application starts, some GPIO pins are configured as outputs
infocenter.nordicsemi.com
nRF5 SDK v17.1.0: Simple Timer Example
The Simple Timer Example demonstrates the usage of the Simple timer. It demonstrates the two modes of the module (single shot mode and repeated mode) to blink two LEDs. When the application starts, the GPIO pins are configured as outputs to drive the LEDs.
infocenter.nordicsemi.com
연관
Real Time Counter
nRF52. RTC (Real Time Counter/Clock)
nRF52 RTC Features RTC 수량 : nRF52840 의 경우 3개 low power timer on the low-frequency clock source (LFCLK). Function Block Clock Source The RTC will run off the LFCLK. The COUNTER resolution will therefore be 30.517 μs. Depending on the source, th
igotit.tistory.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 nRF52 블투 무선솔루
igotit.tistory.com
첫등록 : 2018년 6월 11일.
최종수정 : 2023.01.24
단축주소 : https://igotit.tistory.com/1698
'임베디드.일렉트로닉스 > nRF52' 카테고리의 다른 글
nRF5. Enhanced ShockBurst. 개요. (0) | 2018.06.14 |
---|---|
nRF52. 2.4GHz radio transceiver (0) | 2018.06.11 |
nRF5. PPI ( Programmable peripheral interconnect ) (0) | 2018.06.11 |
nRF5 SDK. SES. 응용소스들 몰아두기. main.c, sdk_config.h 파일이전. (0) | 2018.06.10 |
nRF5. BLE NUS Server Client Test. (0) | 2018.06.08 |
댓글