I know this is a long shot
I have a TPIC6595 8 Bit Shift Register on a Board that is "connected" to a PIC16F628A Microchip.
Please see the following pictures.
Here are the connections from the Pic to the Shift Register
RA1 goes to RCK
RA0 goes to SRCLR
RA2 goes to SRCK
RA3 goes to G
RA4 goes to SER IN
In the pictures below, the shift register goes on U2 and the Microchip goes on U1.
And then the the 8 Drain from the Shift Register are all connected to corresponding relays which in turn are connected to motors.
You wont like it very much but I don't have a schematic of the circuit but I can certainly provide pictures, and maybe draw up a crude schematic in autocad or something.
As far as the inputs I have 7 inputs (PORTB) on the Microchip that is connected to a controller that eventually controls the motors. For example, you hit Switch1, and the microchip recognizes the button press and sends a control to the shift register which in turns sends control to the relay for Motor1. (I am assuming that is how is works, because I don't really know anything about shift registers)
So now to the problem. I don't have any code for the Microchip. I can program the code in C, and I already have the code written to recognize the button press and now I am stuck on how I send it to the shift register. I did some reading on the internet, and I am getting more confused, the more I read. I just need some help in being pointed in the right direction, such as how to write the code.
Any help in getting pointed in the right direction would be greatly appreciated
I have a TPIC6595 8 Bit Shift Register on a Board that is "connected" to a PIC16F628A Microchip.
Please see the following pictures.
Here are the connections from the Pic to the Shift Register
RA1 goes to RCK
RA0 goes to SRCLR
RA2 goes to SRCK
RA3 goes to G
RA4 goes to SER IN
In the pictures below, the shift register goes on U2 and the Microchip goes on U1.
And then the the 8 Drain from the Shift Register are all connected to corresponding relays which in turn are connected to motors.
You wont like it very much but I don't have a schematic of the circuit but I can certainly provide pictures, and maybe draw up a crude schematic in autocad or something.
As far as the inputs I have 7 inputs (PORTB) on the Microchip that is connected to a controller that eventually controls the motors. For example, you hit Switch1, and the microchip recognizes the button press and sends a control to the shift register which in turns sends control to the relay for Motor1. (I am assuming that is how is works, because I don't really know anything about shift registers)
So now to the problem. I don't have any code for the Microchip. I can program the code in C, and I already have the code written to recognize the button press and now I am stuck on how I send it to the shift register. I did some reading on the internet, and I am getting more confused, the more I read. I just need some help in being pointed in the right direction, such as how to write the code.
Any help in getting pointed in the right direction would be greatly appreciated
Attachments
-
296 KB Views: 228
-
294.7 KB Views: 195
Last edited: