I'm planning on interfacing a PIC microcontroller to two devices which operate on two different logic levels and I'm wondering what the best way of approaching this is. I'm rather inexperienced in this area and was hoping to get some ideas on the matter and clarify a few points.
The problem is that the logic level for the PIC is TTL logic; 0 = 0v, 1 = 5v and the logic levels for the other two devices are 0 = -6v, 1 = - 6v and 0 = 0v and 1 = 10v.
I was planning on using a max232 to provide a conversion to -10v/10v logic and using a voltage divider on the output to provide the -6v/6v logic. Could this approach cause any potential problems with the signal conditioning?
For interfacing to the 10v logic level I was planning on using the 10v rail created by the max232 and somehow switching this to ground using the PIC. Is this a reasonable solution or is there a more elegant approach? Any pointers or factors I should consider would also be much appreciated!