Hello guys, I'm despaired I have project at university and deadline is coming soon. It's my first project with atmega168 and atmel.
what am I doing mainly is that I'm driving 6 PWM but more important for me is 4 of them OCR0A,B and OCR2A,B
So what I want to do is:
I want make small program which increments PWM now what have I done is
for (a=100; a<107; a=a+0.001)
for (b=100; b<105; b=b+0.001)
this code works as It should be but problem is that I want those small programs to be written and I call them one by one
for ex I'll have 6 small program like that and I have to call in main:1,4,3,5,4,3 or another possible order which will be needed.
Can someone give me an advice how to do this? plus those small programs must communicate with each other
for ex if I run 4th program firstly and 6th secondly. 6th program must know result of 4th and start working from 4th result numbers.
I know it's whole problem written here but I hope I can get good advice from people who knows better then me and maybe it's not as big deal as I think.