8.program For Internal ADC of PIC: Objective
8.program For Internal ADC of PIC: Objective
8.program For Internal ADC of PIC: Objective
THEORY :
Analog to Digital Converter (ADC) is a device that converts an analog quantity
(continuous voltage) to discrete digital values. This is very useful when we want to do
some processing on physical quantities, which are normally analog in nature. Most of
the PIC Microcontrollers have built in ADC Module.
PROGRAM :
list p=16f877A ; list directive to define processor
#include <p16f877A.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _RC_OSC &
_LVP_ON & _DEBUG_OFF & _CPD_OFF
QUESTIONS :
Q1 . Draw bit format of ADCON0 & ADCON1 register.