Page 1 of 1

ADC suggestion

Posted: Mon Dec 08, 2025 3:46 am
by hippalator
Using the 16f18877 (BL0011) and DDS9834 ic.

Using the 16f18877 ADC to read a voltage from 0 to 5vdc.
I'd like to scale the 5vdc over 360 points.
When a signal is out of phase I would roughly know how far out of phase by the voltage difference between the two signals and load a predetermined amount of cycles to DDS phase shift registers.
Any ideas on how to scale the 5vdc to 360 degrees?

Re: ADC suggestion

Posted: Mon Dec 08, 2025 4:10 am
by medelec35
Hello.
You can use the Map Function component (Component Libraries > Math > Calculation)
That will save you having a float variable and to then then multiply voltage by 72.0.