내부 전압 변환 방식 변경 LDO -> DC-DC

- sdk_config.h: NRFX_POWER_CONFIG_DEFAULT_DCDCEN 1
- sdk_config.h: POWER_CONFIG_DEFAULT_DCDCEN 1
- 전력 소모 방지
This commit is contained in:
jhChun
2026-03-25 15:46:22 +09:00
parent 4fb463769e
commit d30e33444e
4 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@@ -51,3 +51,4 @@ desktop.ini
# Temporary files # Temporary files
*.tmp *.tmp
*.bak *.bak
data/curcuit

View File

@@ -157,6 +157,8 @@ void app_error_log_handle(uint32_t id, uint32_t pc, uint32_t info);
/**@brief Macro for calling error handler function if supplied error code any other than NRF_SUCCESS. /**@brief Macro for calling error handler function if supplied error code any other than NRF_SUCCESS.
* *
* @param[in] ERR_CODE Error code supplied to the error handler. * @param[in] ERR_CODE Error code supplied to the error handler.
*
* 시스템 에러 시 리셋(SoftDevice 초기화) 후 BLE Advertising 시작
*/ */
#define APP_ERROR_CHECK(ERR_CODE) \ #define APP_ERROR_CHECK(ERR_CODE) \
do \ do \

View File

@@ -2720,7 +2720,7 @@
// <i> This settings means only that components for DCDC regulator are installed and it can be enabled. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0 #define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 1
#endif #endif
// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
@@ -5103,7 +5103,7 @@
// <i> This settings means only that components for DCDC regulator are installed and it can be enabled. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
#ifndef POWER_CONFIG_DEFAULT_DCDCEN #ifndef POWER_CONFIG_DEFAULT_DCDCEN
#define POWER_CONFIG_DEFAULT_DCDCEN 0 #define POWER_CONFIG_DEFAULT_DCDCEN 1
#endif #endif
// <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator // <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator

View File

@@ -179,7 +179,13 @@ void tmp235_init(void)
/* SAADC 드라이버 초기화 (기본 설정 + 온도센서 이벤트 핸들러 등록) */ /* SAADC 드라이버 초기화 (기본 설정 + 온도센서 이벤트 핸들러 등록) */
ret_code_t err_code = nrf_drv_saadc_init(NULL, tmp235_voltage_handler); ret_code_t err_code = nrf_drv_saadc_init(NULL, tmp235_voltage_handler);
APP_ERROR_CHECK(err_code); APP_ERROR_CHECK(err_code);
/*
if (err_code != NRF_SUCCESS)
{
tmp235_saadc_done = true; // 대기 루프 탈출시킴
return;
}
*/
/* AIN3 채널 설정: TMP235-Q1 Vout 핀 (싱글엔드 입력) */ /* AIN3 채널 설정: TMP235-Q1 Vout 핀 (싱글엔드 입력) */
nrf_saadc_channel_config_t config = NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_AIN3); /* TMP235_Q1 Voltage Output Measurement */ nrf_saadc_channel_config_t config = NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_AIN3); /* TMP235_Q1 Voltage Output Measurement */
err_code = nrf_drv_saadc_channel_init(0, &config); err_code = nrf_drv_saadc_channel_init(0, &config);