Hi sir...
the code that you wrote for 'There the C source code' is the one to program the PIC?
you are connecting pin 4 and 14 to 5 volts, you are connecting LM7805 to both 5 volts and 12 volts, right? you are using three capacitors 0.1, 0.1, and 100 micro farad, is that true?
PIC Traffic Lights Controller with PIC16F84A
Re: PIC Traffic Lights Controller with PIC16F84A
what code shall i use to program the PIC?
I need green to turn for 5 seconds, yellow for 1 second, and red for 5 seconds.
Could you please tell what code i should use?
I need green to turn for 5 seconds, yellow for 1 second, and red for 5 seconds.
Could you please tell what code i should use?
Re: PIC Traffic Lights Controller with PIC16F84A
Thought this is submitted by one of our ROBOT.LK members, I would give you some guidance on this.
So you can use either the ASM version or C version.
I think I have answered all your questions.
the code that you wrote for 'There the C source code' is the one to program the PIC?
You could program the PIC using ASM, C or Basic. C is the preferred to program in most of the cases. However you need a C compiler like Hi TECH C to compile the code for the PIC. If you use ASM, then you can use MPLAB which comes with a built-in ASM compiler.what code shall i use to program the PIC?
So you can use either the ASM version or C version.
When you supply 12 V to LM7805 power regulator, it makes 5V to your circuit. You could input up to 35V to 7805 according to the spec and get 5V to your circuit.you are connecting LM7805 to both 5 volts and 12 volts, right?
Correct. The 0.1u is the recommended minimum load capacitance to limit high frequency noise.you are using three capacitors 0.1, 0.1, and 100 micro farad, is that true?
DelayBigMs function is used to delay the execution for some given milliseconds. For example, to delay 5 seconds, you need to use as below.I need green to turn for 5 seconds, yellow for 1 second, and red for 5 seconds.
Code: Select all
DelayBigMs (5000); // 5000 msec = 5 sec