This function enables sample and hold of the CTDAC output.
Functions | |
void | Cy_CTB_DACSampleAndHold (CTBM_Type *base, cy_en_ctb_sample_hold_mode_t mode) |
Perform sampling and holding of the CTDAC output. More... | |
void Cy_CTB_DACSampleAndHold | ( | CTBM_Type * | base, |
cy_en_ctb_sample_hold_mode_t | mode | ||
) |
Perform sampling and holding of the CTDAC output.
To perform a sample or a hold, a preparation step must first be executed to open the required switches. Because of this, each sample or hold requires three function calls:
It takes 10 us to perform a sample of the CTDAC output to provide time for the capacitor to settle to the new value.
base | Pointer to structure describing registers |
mode | Mode to prepare or perform a sample or hold, or disable the ability |