MUX 채널 선택 이후 노이즈 삭제를 위한 dummy burst 횟수 매크로
- 6 → 5회 - 실제 측정 시 4회까지 노이즈 발견되었음
This commit is contained in:
@@ -1348,8 +1348,8 @@ dr_adc_err_t maa_async_start(uint8_t freq_option, uint16_t delay_us, uint16_t nu
|
|||||||
/* capture all channels without BLE TX, then start transmission */
|
/* capture all channels without BLE TX, then start transmission */
|
||||||
g_maa_ctx.state = MAA_ASYNC_CAPTURING;
|
g_maa_ctx.state = MAA_ASYNC_CAPTURING;
|
||||||
|
|
||||||
/* Warm up CH0 6 times and discard the results before the real capture starts. */
|
/* Warm up CH0 before real capture (MAA_ASYNC_WARMUP_COUNT). */
|
||||||
for (uint8_t warmup = 0; warmup < 6; warmup++)
|
for (uint8_t warmup = 0; warmup < MAA_ASYNC_WARMUP_COUNT; warmup++)
|
||||||
{
|
{
|
||||||
err = dr_adc_capture_channel_only(
|
err = dr_adc_capture_channel_only(
|
||||||
g_maa_ctx.freq_option,
|
g_maa_ctx.freq_option,
|
||||||
|
|||||||
@@ -326,6 +326,11 @@ void dr_piezo_select_channel(uint8_t channel);
|
|||||||
#define MAA_NUM_CHANNELS 6 /* 4 -> 8 -> 6 jhChun 26.03.17*/
|
#define MAA_NUM_CHANNELS 6 /* 4 -> 8 -> 6 jhChun 26.03.17*/
|
||||||
#define MAA_SAMPLES_MAX 200
|
#define MAA_SAMPLES_MAX 200
|
||||||
|
|
||||||
|
/* CH0 warm-up captures before maa/mbb/mtb (each costs ~1 MUX settle + burst + ADC). */
|
||||||
|
#ifndef MAA_ASYNC_WARMUP_COUNT
|
||||||
|
#define MAA_ASYNC_WARMUP_COUNT 5U
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Echo data for one channel
|
* @brief Echo data for one channel
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user