??? 05/09/06 18:02 Read: times |
#115865 - I'm in trouble with my PWM software |
Hi All,
I need help for my PWM generating software. Firstly I want to explain how my hardware designed and what is the aim. I'm only using P1 for all operations. I have two-channel PWM signal input from a source and they are being applied to P1.0 & P1.1 . (Note to important, when ch1 pwm signal is on ch2 pwm signal is off and visa versa along a 10ms time period for each) INT0 input is being activated for every 10ms(zero crossing knowledge of 50 Hz sinus wave) In my program, I manupulate the stack pointer when the microcontroller is in interrupt to brach the required PWM generating program. But I'm in trouble for following INT0 inputs. For instance, once the microcontroller branched +ve cycle pwm generating program, it never sense the next zero crossing interrupt to execute -ve cycle pwm generating program. All work flow of my program is correct according to the execution of microcontroller. But unfortunatelly I have a problem that I could not understand. I 'll be graetful if anyone can offer a solution for my problem. http://rapidshare.de/files/200...e.zip.html Thanks and in advance, Take Care |
Topic | Author | Date |
I'm in trouble with my PWM software | 01/01/70 00:00 | |
Interrupts ? | 01/01/70 00:00 | |
Firstly I want to explain how my hardwar | 01/01/70 00:00 | |
89C52 | 01/01/70 00:00 | |
use a uC with a PCA | 01/01/70 00:00 | |
wiggling with the stack pointer | 01/01/70 00:00 | |
I know that.... | 01/01/70 00:00 | |
no you don't | 01/01/70 00:00 | |
To: Erik | 01/01/70 00:00 | |
My code | 01/01/70 00:00 | |
I can't tell | 01/01/70 00:00 | |
His Code | 01/01/70 00:00 | |
Nicely formatted | 01/01/70 00:00 | |
As Erik suggested | 01/01/70 00:00 | |
not valuable | 01/01/70 00:00 | |
Hard to understand | 01/01/70 00:00 | |
asking for? | 01/01/70 00:00 | |
Weird DNA.... | 01/01/70 00:00 | |
that does make a difference | 01/01/70 00:00 | |
Playing with The Stack Pointer | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
ORG 33H | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
replying to what in the above refer to m | 01/01/70 00:00 | |
Listen and learn | 01/01/70 00:00 | |
excellent question | 01/01/70 00:00 | |
I'm listening and learning | 01/01/70 00:00 | |
Oops | 01/01/70 00:00 | |
Rewrite ! | 01/01/70 00:00 | |
WRONG | 01/01/70 00:00 | |
Basic methods & specific details | 01/01/70 00:00 | |
To:Neil | 01/01/70 00:00 | |
+ve&-ve | 01/01/70 00:00 | |
totally unnneded information | 01/01/70 00:00 | |
+ve | 01/01/70 00:00 | |
Me too | 01/01/70 00:00 | |
halfway | 01/01/70 00:00 | |
Just like the first time I saw 3v3 | 01/01/70 00:00 | |
Mid 70's | 01/01/70 00:00 | |
the reason | 01/01/70 00:00 | |
Yes - Very Well Established | 01/01/70 00:00 | |
the trouble is | 01/01/70 00:00 | |
Other calls | 01/01/70 00:00 | |
One thing for the future | 01/01/70 00:00 | |
I do not see the point | 01/01/70 00:00 | |
I got bored... | 01/01/70 00:00 | |
argh, so many nops | 01/01/70 00:00 | |
NOP | 01/01/70 00:00 | |
New version | 01/01/70 00:00 | |
Thanks Steve...and others | 01/01/70 00:00 | |
NO | 01/01/70 00:00 | |
I suggest you look at your own changes | 01/01/70 00:00 | |
His new code | 01/01/70 00:00 | |
very informative | 01/01/70 00:00 | |
Another happy customer | 01/01/70 00:00 | |
Young Double E? | 01/01/70 00:00 | |
finished | 01/01/70 00:00 | |
the one at which end of the body?![]() | 01/01/70 00:00 |