PIC = 40X2
I would like to be able to send characters into a PIC from a PC (RS232) to switch outputs on and off.
3 PIC's A, B, C
1st letter: Chip ID
2nd & 3rd letter: output number (AA = A.0, AB = A.1, AC = A.2, BA = B.0, CD = C.3)
Send "AAA" turns output A.0 high on chip A
Send "aaa" turns output A.0 low on chip A
Send "BBA" turns output B.1 high on chip B
Send "bba" turns output B.1 low on chip B
Send "CCB" turns output C.2 high on chip C
and so on.
I assume I'd need to connect the PIC's by daisy chaining the PIC's together using a single wire and a simple checking of: if a the text contains C at the beginning, A doesn't need it so A will send to B, B checks and sends to C?
Questions!
1, Is it possible?
2, Has anyone tried this?
3, Do I need to use a Max232, there seems to be conflicting opinions on the forum to the manuals. I assume not "When using simple resistor interface, use N inverted) signals. When using a MAX232 type interface use T (true) signals. The protocol is fixed at N,8,1 (no parity, 8 data bits, 1 stop bit). Manual 2 pg.173"
4, What hitches could I run into?
5, I assume Serrxd for input and Sertxd to the following PIC's
I would like to be able to send characters into a PIC from a PC (RS232) to switch outputs on and off.
3 PIC's A, B, C
1st letter: Chip ID
2nd & 3rd letter: output number (AA = A.0, AB = A.1, AC = A.2, BA = B.0, CD = C.3)
Send "AAA" turns output A.0 high on chip A
Send "aaa" turns output A.0 low on chip A
Send "BBA" turns output B.1 high on chip B
Send "bba" turns output B.1 low on chip B
Send "CCB" turns output C.2 high on chip C
and so on.
I assume I'd need to connect the PIC's by daisy chaining the PIC's together using a single wire and a simple checking of: if a the text contains C at the beginning, A doesn't need it so A will send to B, B checks and sends to C?
Questions!
1, Is it possible?
2, Has anyone tried this?
3, Do I need to use a Max232, there seems to be conflicting opinions on the forum to the manuals. I assume not "When using simple resistor interface, use N inverted) signals. When using a MAX232 type interface use T (true) signals. The protocol is fixed at N,8,1 (no parity, 8 data bits, 1 stop bit). Manual 2 pg.173"
4, What hitches could I run into?
5, I assume Serrxd for input and Sertxd to the following PIC's
Last edited: