ldr on pic16f877a with mikroc
#2
ldr on pic16f877a with mikroc

void main()
{
TRISC = 0; //Configure PORTC as ouput

TRISA.RA0=1; // Configure as input pin for negative input of Comparator 1
TRISA.RA1=1; // Configure as input pin for negative input of Comparator 2
TRISA.RA2=1; // Configure as input pin for positive input of Comparator 1
TRISA.RA3=1; // Configure as input pin for positive input of Comparator 2
TRISA.RA4=0; // Configure as output pin for output of Comparator 1
TRISA.RA5=0; // Configure as output pin for output of Comparator 2

CMCON=0x05; // 'Two Common Reference Comparators with Outputs' Mode

while(1)
{
PORTC.F0 = CMCON.C2OUT; // Assigning output of comparator 2 to RC0
PORTC.F1 = CMCON.C1OUT; // Assigning output of comparator 2 to RC1
Delay_ms(100);
}
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: pic mppt charge controller mikroc coding, pic ldr mikroc, mikroc micromouse, mikroc code for accident detection system using pic18f452, servo motor projects in mikroc, solar charge controller pic mikroc, mikroc codes and circuit using 16f877 on solar charge controller,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
ldr on pic16f877a with mikroc - by Guest - 10-03-2016, 08:13 PM
RE: ldr on pic16f877a with mikroc - by seminar report asees - 11-03-2016, 02:25 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  ldr sensor interfacing with lpc2148 4 1,933 22-09-2017, 11:40 AM
Last Post: Guest
  electronic eye controlled security system using ldr pdf 3 9,704 15-02-2017, 12:42 PM
Last Post: jaseela123d
  ppt for electronic eye controlled security system using ldr 1 1,139 17-06-2016, 12:42 PM
Last Post: dhanabhagya
  pic16f877a automatic irrigation system project with circuit diagram and code 1 704 08-06-2016, 04:43 PM
Last Post: dhanabhagya
  interfacing ldr in fpga using vhdl 1 687 31-05-2016, 11:56 AM
Last Post: dhanabhagya
  sms home automation in mikroc code 1 718 19-05-2016, 11:55 AM
Last Post: dhanabhagya
  obstacle avoiding robot using pic16f877a code 1 617 12-05-2016, 11:26 AM
Last Post: dhanabhagya
  electronic eye controlled security system using ldr pdf 1 1,100 12-05-2016, 11:22 AM
Last Post: dhanabhagya
  auto intensity control of street light using pic16f877a rtc ldr 1 693 12-05-2016, 09:32 AM
Last Post: seminar report asees
  auto intensity control street light using ldr with lpc2148 1 627 07-05-2016, 10:42 AM
Last Post: dhanabhagya

Forum Jump: