ldr on pic16f877a with mikroc
#1
Wink 

i need the whole simulation result and coding for interfacing pic 16f877a and ldrsensor
Reply
#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: mikroc code for accident detection system using pic18f452, pic16f877a ldr projects, ldr pic16f877a microc, pic mppt charge controller mikroc coding, pic16f73 mikroc, gsm sms mikroc, gsm modem sms source code mikroc,

[-]
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)

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

Forum Jump: