본문 바로가기
728x90
반응형

전체 글35

nRF52 BLE 개발하기 - NRF_LOG_INFO 시작하기 이번에는 random number generator 예제를 통해 소스코드 디버깅 시 유용한 NRF_LOG_INFO 함수 사용법을 같이 알아보도록 하자. \examples\peripheral\rng\pca10040\blank\ses 폴더에서 프로젝트를 실행하자. #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h" #define RANDOM_BUFF_SIZE 16 /**< Random numbers buffer size. */ /** @brief Function for getting vector of random numbers. * * @param[out] p_buff Pointer to unit8_.. 2021. 1. 19.
nRF52 BLE 개발하기 - wdt 시작하기 이번에는 타이머의 마지막 예제로 WDT(Watch Dog Timer)에 대해서 알아보도록 하겠다. 와치독 타이머란 시스템이 비정상적인 동작을 하여 멈춰버리는 것을 방지하기 위해 쓰이는 방법 중 하나이다. 상당히 유용하며 중요한 장치로 임베디드 시스템에 빠질 수 없는 타이머이다. 이제 \examples\peripheral\wdt\pca10040\blank\ses 폴더에서 프로젝트를 실행시키고 예제를 살펴보도록 하자. The WDT Example demonstrates the usage of the watchdog peripherals. When the application starts, all LEDs are turned on one after the other. When all LEDs are .. 2021. 1. 18.
nRF52 BLE 개발하기 - rtc 시작하기 이번에는 타이머 예제로 rtc에 대해서 알아보도록 하자. \examples\peripheral\rtc\pca10040\blank\ses 폴더에서 프로젝트를 실행해보자. The Real Time Counter Example enables the real-time clock (RTC) with a TICK frequency of 8 Hz. It also configures and enables the TICK- and the COMPARE0-interrupts. The compare interrupt handler is triggered three seconds after the RTC starts. The TICK interrupt handler clears the interrupt request.. 2021. 1. 15.
nRF52 BLE 개발하기 - simple_timer 시작하기 이번에는 simple_timer 예제를 살펴보도록 하자. \examples\peripheral\simple_timer\pca10040\blank\ses 폴더에서 프로젝트를 실행시키고 링크를 통해 예제에 대한 설명을 살펴보자. 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. The applic.. 2021. 1. 14.
728x90
반응형