very sorry for making a late reply. well here is the scenario in which i want to use this cascading.
I have made a robot in which there will be two drive wheels, each supported by a separate DC motors. So in total there will be two DC motors for TWO drive wheels. I want to control each of them through PWM. SO that i can control their revolutions. Like if i want my right wheel to take 3 revolutions and then stop, i can do that with the help of command of PWM:
PWM portB.0, 250, 100
the no of cycles i can vary to get the desired revolutions. Isnt it so?
Now i have certain other things to operate in my robot as well. Like running other motors from time to time. Lets say i have to lift a ball up while my robot is moving towards the target basket. SO it means that i have to use certain parallel processing. While PIC16F84A can allow u to have sequential processing only. SO that is the reason why i want to use two PICs simultaneously. Here is what my mind is saying to me: plz check it out:
PIC#1 connected with two Drive motors
PIC#2 connected with two white line tracking sensors, one lifter motor, two solenoids for closing and openeing some windows.
Both pics are PIC16F84A.
Now what i want to do is like this
PIC#1 starts functioning, there is a point B on the white line which i have to detect, so wheels start moving straight and when it reaches point B, the PIC#2 gives the signal to PIC#1 that i have detected the point B. The PIC#1 gets interrupted due to this signal and then wheels now stop moving straight and PIC#1 jumps to a new programming routine. Then PIC#1 will signal the PIC#2 that lift the balls up. PIC#2 will recive the signal and start the motor connected with it to lift the ball and all this.....
I hope u r getting my point. Now please tell me any solution with some examples that how can i do it. I shall be very very thankful to u for this act of kindness. And one thing more, that i have a very very short time left for the competition so please make ur replies as quickly as possible.
I thank u very very much in anticipation.
take carez
Best REgards
LETS MOVE TOWARDS SOMETHING PRACTICAL---
Bookmarks