Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Schematic of My Project

Status
Not open for further replies.

kvsa

Newbie level 4
Joined
Oct 8, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
45
Hi, Mr.Venkadesh.M
Thanks for your reply,
Here with i attached the schematic
schematic . jpeg.JPG

kindly reply
By kvs
 

R3, R4, R7, R8 are not needed. R6 and R5 should be 300 Ohms. If RC4 and RC5 are input pins then R1 and R2 are not needed.
 
  • Like
Reactions: kvsa

    kvsa

    Points: 2
    Helpful Answer Positive Rating
Hi kvsa you can continue in the same thread itself no need of posting a new thread.. and as jayanth.devarayanadurga said you have to modify the resistors....
The programming part is very simple and you can do whatever you want, I always use HiTech compiler so i am writing on it, you will need MPlab IDE and hitech compiler for compiling purposes..

Hi, I develop a small project Using Pic microcontroller 16F676 i need the 'C' code for that.

In my hardware Pic 16f676 is used
RC5 is Input 1
RC4 is Input 2
RC0 is Output 1
RC1 is Output 2
I used internal oscillator in Pic 16f676

Sequence
Initially some delay time to start this operation
RC5 gets a input signal, Output RC0 enable (some delay for holding)
Interlock between this two operation
RC4 gets a input signal, Output RC1 enable (some delay for holding)
This cycle is continuous operation

Can you help me to develop the 'C' Code this sequence
By kvs

And did you mean any one of the output shd be high as interlock???
 

if you are going to ucsp then connector also should be there to burn programm.
 


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include<htc.h>
 
#define _XTAL_FREQ 20000000 //  your xtal frequency in hz
//configurations according to operation
 
void main()
{
   TRISC = 0b01100011;
 
   __delay_ms(100);
 
while(1)
{
     if (RC5 == 1 && RC6 == 0) //  with interlock
   {
       RC0 = 1;
      }
     else if(RC6 == 1 && RC5 == 0) // with interlock
      {
        RC1 = 1;
      }
     else   // if both inputs or high or low no output
      {
        RC0 = 0;
        RC1 = 0;
      }
}
}

 
Last edited:


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//configurations as per your req...
 
void main()
{
   TRISC = 0b01100011;
   while(1)
     {
         if(RC5 && !RC6)
            {
                RC0 = 1;
                RC1 = 0;
//Holding delay...
            }
 
          else if(!RC5 && RC6 )
             {
              RC0 = 0;
              RC1 = 1;  
//Holding delay
             }
         else
             {
                 RC0 = 0;
                 RC1 = 0;
              }
     }
}

 
Last edited:


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//configurations as per your req...
 
void main()
{
   TRISC = 0b01100011;
while(1)
{
   if(RC5 == 1)
       RC0 = 1;
 
   else if(RC6 == 1)
     RC1 = 1;  
}
}


Hi mathe,
If once RC0 = 1 then how it will get turn off??
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top