Hello,
I have one more questions while doing test with SAADC, UART.
When I was tested the SAADC pin connect with ground, the negative value occurs.
So, I changed the code like below and I can see the 0 value in LOG info.
However, in the UART RX part(microprocessor) the negative value still occurs,
and other trash value(noise I think) occur. The only hardware connection is the ground & UART pin.
1) p_event->data.done.p_buffer[0] = 0; this line code cannot be changed the pointer value?
While I am find the problem, I am not sure the buffer setting of the code is right.
The second picture, 1 buffer used, and 1 saadc channel is activated.
2) Is is right method that 1channel and 1buffer using?
I just know about buffer_convert function,: ("nrf_drv_saadc_buffer_convert" function must be a multiple of the number of channels.)
Is there any reason or the part which I should check?
The 3rd picture, Temp[18] to Temp[22] is the only right value.('\x0d' '\x0a' '-' '1' '0' -> (start bit, right, data -10))
The other value is noise, or etc.
cf) I am connect the UART/ ground pin as possible as narrow(under 10cm) / the UART setting double-checked(ex. baudrate, parity, stop bit, etc.)
cf) (picture 1) saadc init (picture 2) nrf_drv_saadc_buffer_convert, ble_nus_data_send (picture 3) UART RX part results with unwanted data



Sorry for many questions.
Thank you for reading my questions.
Best Regards,
Yclee.