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.
i am only able to control pwm_width. That will be apply on all three ports.
In the loop i want to turn-off any required port like:
for (i=0;i<=255;i++)
{
pwm_width=i
P0^1=0;
P0^2=0;
delay(X);
}
But it's not happening. If i do so, all three ports act respect to pwm_width...
I am planning to use a switch input for switch - case.
Case1: PWM o/p only comes from port 0. port 1 and port 2 will be 0v.
Case2: PWM o/p pnly comes from port 1.
.
.
.
case6: PWM o/p comes from all three port.
I want to write a code for the following requirements.
3 ports for RGB LED with PWM output.
1 ports for 1 pulse/Sec.
2 switch input for PWM width +/-.
1 switch input for 7 case.
I have completed that task using simple method except that 1pulse/sec.
I can't understand how to define that. If I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.