Changes for page LSS-2MC Board

Last modified by Eric Nantel on 2023/05/29 07:33

From version < 79.1 >
edited by Eric Nantel
on 2022/11/02 07:14
To version < 80.1 >
edited by Eric Nantel
on 2022/11/02 07:21
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -40,6 +40,27 @@
40 40  
41 41  Using the LSS-2MC with it's example code require the user to understand it's Protocol which is available [[HERE>>doc:.2mc-communication-protocol.WebHome]].
42 42  
43 +**Internal Serial Connection**
44 +
45 +In this mode, the board is effectively a "peripheral". In order to respond to LSS commands, it needs to be running appropriate code, or the default Lss2IO Arduino sample program. The pinout is as follows:
46 +
47 +* ATMega328P's Tx pin (D1) is connected to the LSS Tx line through a [[tri-state buffer (IC3)>>https://en.wikipedia.org/wiki/Three-state_logic||rel="noopener noreferrer" target="_blank"]] that can be enabled or disabled with pin D14.
48 +* ATMega328P's Rx pin (D0) is connected to the LSS Rx line.
49 +
50 +Therefore data that is sent from an external UART device will be received on the LSS Rx line and the ATMega328P Rx pin. The LSS 2IO USB-to-Serial IC Tx is connected to the ATMega328P Rx (pin D0) through another [[tri-state buffer (IC4)>>https://en.wikipedia.org/wiki/Three-state_logic||rel="noopener noreferrer" target="_blank"]] that can be enabled/disabled with pin D7. The Lss2IO Arduino code inherently takes care of managing the pins D14 and D7 as follows :
51 +
52 +* **D7 **is LOW**: **to disconnect LSS 2IO USB-to-Serial IC Tx from ATMega328P Rx (pin D0) allowing the ATMega328P to receive data from the UART controller device as LSS 2IO USB-to-Serial IC Tx is HIGH when LSS 2IO is powered.
53 +* **D14** is HIGH**:** when the 2IO Board is sending data on the LSS Tx line to an external UART device Rx pin. LSS Tx line is asserted to the 2IO Tx pin :
54 +
55 +{{lightbox image="LSS-2IO-Schematic-2RC-D14HIGH.png" width="900"/}}
56 +
57 +* **D14 **is LOW**:** when the 2IO Board is not sending data on the LSS Tx line. The 2IO frees up the LSS Tx line to avoid bus congestion (when 2 devices sends data at the same time) :
58 +
59 +{{lightbox image="LSS-2IO-Schematic-2RC-D14LOW.png" width="900"/}}
60 +
61 +{{warningBox warningText="**NOTE:** Double check that the Lss2IO Arduino program is loaded in the 2IO's ATMega328P to be able to use this mode"/}}
62 +
63 +
43 43  = Pinout =
44 44  
45 45  |(% colspan="3" %)**Top External Pins**
Copyright RobotShop 2018