Hi. I need some advice please on connecting an 18M2 to my PC so that I can send serial commands to it to set certain output pins high or low.
I don’t need the 18M2 to reply to the PC.
I do not need to be able to program the 18M2. I do that off board.
I have actually done this type of thing before with the 08M2 using the serial in pin C.5 or leg 2. This entailed using the DISCONNECT command in the code. I want to avoid this using the 18M2 as it is not recommended in the manual.
My question is how do I wire the various legs of the 18M2?
Firstly, the serin pin C.4, leg 3. As I will not be using this pin, I presume I connect it to ground with a 10k resistor?
Secondly, pin C.5, leg 4. I want to use this pin as my serial in pin. I presume I connect this to the Tx pin coming from the PC using a 22k resistor and ground the Tx wire using a 10k resistor.
Thirdly, I presume I connect the serout pin C.3, leg 2 to the Rx pin from the PC.
Finally, in the software, I set all other pins low to make them outputs, except of course the V and GND.
Thank you.
Dermot
I don’t need the 18M2 to reply to the PC.
I do not need to be able to program the 18M2. I do that off board.
I have actually done this type of thing before with the 08M2 using the serial in pin C.5 or leg 2. This entailed using the DISCONNECT command in the code. I want to avoid this using the 18M2 as it is not recommended in the manual.
My question is how do I wire the various legs of the 18M2?
Firstly, the serin pin C.4, leg 3. As I will not be using this pin, I presume I connect it to ground with a 10k resistor?
Secondly, pin C.5, leg 4. I want to use this pin as my serial in pin. I presume I connect this to the Tx pin coming from the PC using a 22k resistor and ground the Tx wire using a 10k resistor.
Thirdly, I presume I connect the serout pin C.3, leg 2 to the Rx pin from the PC.
Finally, in the software, I set all other pins low to make them outputs, except of course the V and GND.
Thank you.
Dermot