General analog exercises




ADC window comparator configuration

Write a function that configures the ADC window comparator. The input parameters are: lower ang higher threshold value. The function must read the justification and repeat count parameters and must take these into account. Note, that if the repeat count is greater than one, the data must be right justified.