Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADC Timing Question for EmonLibCM_setADC() #13

Open
kt-work opened this issue Jan 3, 2023 · 0 comments
Open

ADC Timing Question for EmonLibCM_setADC() #13

kt-work opened this issue Jan 3, 2023 · 0 comments

Comments

@kt-work
Copy link

kt-work commented Jan 3, 2023

This affects the avrdb branch.

This is more a question than an issue. I tried to calculate the time to pass into EmonLibCM_setADC() as ADC_duration from the data sheet. While the data sheet calculates the formatting duration as 2/f_CLK_PER, EmonLibCM uses 2/f_CLK_ADC. The result is 36.75µs in the datasheet case and 39.3µs in the EmonLibCM case. The EmonLibCM value is more correct than the value calculated with the data sheet.

Do you have any explanation for your way of determining ADC_duration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant