Hi to the forum!
I already searched the forum about how to connect two pics, i found that many ppl suggesting using serin2 and serout2 commands.
Iam builiding a robot for avoiding obstacles. One PIC16f877a is used for collecting data(actually the voltage is changing) with a/d channels from a sharp IR sensor and display them on a lcd, I want when the sensor gets a minimal voltage value (indicating the robot is close to an obstacle) then the second PIC 16f84 become active (with a l293d chip) to make the dc motors moves the way I want.
Is there a simpler way to just make the second PIC enable for some minutes to just run the program with the dc motors, and then become inactive again without serial communication?
I know the simplier solution is to put everything on PIC 16f877a but for some strange reason the big PICs dont work well with l293d and dc motors only the smaller ones like pic16f84 or pic16f628 do thats why i need 2 pics.
Any help will be very much appreciated.
Thank you very much.