Hi,
Attached is the example for data reduction using Result register 1.
Please reference to the below code in RED
Attached is the example for data reduction using Result register 1.
Please reference to the below code in RED
Code:
// Result register 1
{
.post_processing_mode = XMC_VADC_DMM_REDUCTION_MODE, //DMM = 0 (Data reduction mode)
//.data_reduction_control = 0, //DRCTR = 0 (Data reduction disabled)
.data_reduction_control = 1, //DRCTR = 1 (Accumulate 2 result value)
//.data_reduction_control = 2, //DRCTR = 1 (Accumulate 2 result value)
.part_of_fifo = false, /* No FIFO */
.wait_for_read_mode = true, /* WFS */
.event_gen_enable = false /* No result event */
},