Hello all
I am building a home made 3 axis cnc router controlled with a custom software written by me. Right now i have 90% finished the router design and working on the electronics , i decided to use pic16f877a as a main controller to which i will connect via 8-bit bus 3 small pic16f84a controllers each of them will control the axis motor with L297+L298 along with two optical interrupters, the communication pic16f877a <=> 3 x pic16f84a is made by a custom commands protocol. I have constructed one "Slave" module for testing and i am sending control packets to it from the "Master" pic. Now the problem i have is that suddenly after a few correct movements the motor starts to rotate rapidly to different directions and don't respond to incoming commands anymore. Even if i disconnect it from the control bus. I think the 'slave' pic is getting 'crazy' somehow, i have tried to pull down the input pins of the pic , tried to add filter capacitors on the VDD lines 5 and 12 volts (for the motor) , nothing helps. I have spent much time trying to figure out whats the problem is but with no luck. Can someone post a working diagram interfacing L297 with PICs. Thanks