News:

Let's find out together what makes a PIC Tick!

Main Menu

Simple ADC Program

Started by GDeSantis, Dec 23, 2021, 10:33 PM

Previous topic - Next topic

GDeSantis

The compiler's ability to combine 8-bit registers such as ADRESH and ADRESL (which are defined in the PPI file) greatly simplifies the task of measuring analogue voltage with 10-bit or more resolution.  This, of course, assumes the resolution of your device's ADC module exceeds 8-Bits.

Using command  "Dim wADC As ADRESL.Word" a simple program to measure analog voltage with 10-Bit (or more) resolution is attached for reference.