Single wire interface module(SWIM) programming for STM8 MCUs

196 views
Skip to first unread message

ankit....@volansystech.com

unread,
May 8, 2019, 3:52:08 PM5/8/19
to BeagleBoard

Hi,

I want to implement SWIM protocol for multiple STM8 MCUs using BB_Black. As per my knowledge it can happen only for one STM8 MCU, but what if I want to program more than 2 STM8 MCUs at a time/one by one??

Is it possible? Please guide me for the same with hardware connection of BB_Black with STM8 MCU if possible.
 

Dennis Lee Bieber

unread,
May 9, 2019, 1:26:55 PM5/9/19
to beagl...@googlegroups.com
On Wed, 8 May 2019 06:48:49 -0700 (PDT), "ankit.nikumbh via BeagleBoard"
<beagl...@googlegroups.com> declaimed the
following:

>I want to implement SWIM protocol for multiple STM8 MCUs using BB_Black. As
>per my knowledge it can happen only for one STM8 MCU, but what if I want to
>program more than 2 STM8 MCUs at a time/one by one??
>
For multiple MCUs, programmed one at a time, using a common SWIM GPIO
lead, you will have to implement some sort of chip select logic using a
suitable digital logic gate (AND, maybe -- you will have to determine the
proper family [open collector, NAND or AND, etc. so that the default state
is "off"]). The SWIM GPIO will connect to one input of each gate (one gate
per MCU). You will also need a set of addition GPIOs (one for each MCU --
but see NOTE). You set the MCU select GPIO for ONE gate, leaving the others
in the "off" position. Then you
>Is it possible? Please guide me for the same with hardware connection of
>BB_Black with STM8 MCU if possible.
>


--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com

TJF

unread,
May 9, 2019, 2:17:49 PM5/9/19
to BeagleBoard
A W1 bus can handle multiple devises, each one addressed by an 8 byte ID. Different devices can share the same bus, ie. sensors, MCUs, .. But the w1-kernel driver doesn't support multiple devices.

Have a look at libpruw1 project.

Regards
Reply all
Reply to author
Forward
0 new messages