Hello,
I want to use C2 comparator of PIC16F628A. Please could anyone to explain me the two below commands. Pin RA2 has a stable voltage at 2,5V (Vref) and pin RA1 is my analog input. The pins RA0 and RA3 I used as digital inputs. What means VR? Thanks.
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
Posted: Sat Apr 28, 2012 12:47 pm
VR means voltage reference. Section 11 of the datasheet gives a full
description of the internal Voltage Reference module. See 10.3.2 and figures
11-1 and 11-2. Also note in 11.2 that internal VRef is affected by changes in
VDD which affects accuracy. _________________ Google and Forum Search are some of your best tools!!!!
2-Chri
Joined: 23 Mar 2012 Posts: 8
Posted: Sun Apr 29, 2012 10:48 am
I write the below command and works perfect.
Code:
setup_comparator(NC_NC_A1_A2); // Turn on Comparator C2.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum