Questions tagged [slave]

A slave is the device being controlled on a bus. Specify and tag with the specific protocol used.

Filter by
Sorted by
Tagged with
1
vote
0answers
27 views

Modbus Slave Firmware Deelopment

I'm developing a simple RS485 based MODBUS slave application on a Microchip PIC micro-controller and need to know best practices to follow on its application side. I can guide myself to get the ...
0
votes
0answers
44 views

Long-Distance Multi-Slave Communication

I am currently trying to connect many serial slave devices to my Arduino device over a 14 meter distance. I am looking to have slave-to-master communication. These devices include: 3 BME280 ...
0
votes
2answers
143 views

How to connect multiple devices to UART bus? [closed]

I want to use a UART bus (RX-TX-GND) to communicate between one master and multiple slaves. NUCLEO-F401RE board is the bus master. B-L072Z-LRWAN1 and ESP32 are the slaves. Communication over UART ...
0
votes
0answers
59 views

Assembler program showing ACK even with the wrong slave address, I2C code problem!

I have this project communicating MPR121 capacitive touch sensing keyboard with 8051 microcontroller, with some references I've implemented some I2C code for serial communication between master and ...
0
votes
0answers
42 views

Check if the slave is receiving data from microcontroller and transmitting back successfully, I2C?

I have this project where I have to communicate MPR121 touch sensor keyboard with 8051 microcontroller via I2C, I've implemented the code and when I execute it I don't really know whether slave is ...
0
votes
2answers
50 views

I2C Put One Termination Res at the End or on Each Slave Board

I Have a system with I2C bus wired just like this: My questions is which one is better: put the termination pull up res at the end of connection (on the last board), or put pull up res on each slave ...
0
votes
2answers
161 views

I2C Single Master Multiple Slave

I have a one I2C master and 14 I2C slave devices connected on the bus. I want to clarify the order of things that happen on the I2C bus. Let say the master send an ADDRESS, then all the slave ...
2
votes
2answers
314 views

Multiple slaves with identical address on multi-master I2C bus [duplicate]

I'm planning a hardware design, where I have a main board and multiple peripheral boards. On each of these boards is a microcontroller with I2C, which is the communication bus for the boards. The same ...
2
votes
2answers
95 views

Multiple slave I2C on different power rails

I read following threads, but still there are some unclear parts for me. Multiple I2C devices with the same address I2C Pull-ups with Multiple Power Supplies Design for Multiple I2C slave devices I ...
1
vote
0answers
60 views

Looking for data sheet of the following Modbus Sensors #updated

I'm a noob in this area, please ignore any stupidity and lack of info and any help is appreciated and I'm ready to provide all clarification on the post if by chance any info is missing. So i have ...
0
votes
0answers
3k views

STM32 - SPI Slave - Using Hal Drivers - Unreliable TXRX and Slow Initialization

I will first describe what I am trying to accomplish, what I have tried, and how it is not working; any help/advice is greatly appreciated. I have an external MCU (Particle Photon) acting as the SPI ...
2
votes
1answer
294 views

Stm32f103RB does not send data in Full duplex SLAVE SPI mode

I am working on stm32f103rb nucleo board and want to send data and receive data using stm32f103 in slave mode. I can get data from the master but I can not send data to the master. I do not know what ...
2
votes
1answer
1k views

What is the slave address of the STM32 NUCLEO-F401RE?

I am currently trying to learn I2C communications with two STM32 NUCLEO-F401RE boards and I am having trouble on how to figure out the slave address of the board. I searched the datasheets and the ...
1
vote
1answer
684 views

I2C bus extender

I am working on a project which requires a long I2C bus which can be long as 200m or more.I searched on the internet and found a chip nxp PCA9600.I would like to know is there any alternate for this ...
0
votes
2answers
223 views

No Acknowledgement from slave device

I am using a FTDI's UM232H usb-i2c adapter to communicate with MAX6615 temperature monitor device and DLVR pressure sensor. I developed a I2C routine to talk to these above mentioned devices. I can ...
2
votes
1answer
5k views

STM32 SPI Slave send data Problem

I am working on a project with the STM32F411 microcontroller. It is set in SPI slave mode and receives data without any problems. When I want to send data over the spi peripheral i works sometimes but ...
1
vote
2answers
469 views

I2C - Certain Slaves not Pulling the Lines down fully

I have a large number of boards deployed with a TI CC3200 microcontroller and a variety of sensors for an industrial monitoring application. I have been having an issue for some time now, on some of ...
0
votes
1answer
200 views

What is slave select signal on the APB bus for?

I am currently working on an APB BFM and I have a question regarding the bus protocol. I understand every slave on APB bus has its own unique address space, where its internal registers are mapped. ...
0
votes
1answer
44 views

Arduino-to-Arduino SPI unexpected characters

I've been trying to follow the posts on Nick Gammon's page which are admittedly a bit old, but seem to be everyone's recommendation for trying out Arduino to Arduino SPI. I'm able to get ...
-1
votes
1answer
390 views

PIC SPI Master and Slave at same time

I need to implement a SPI slave device, and SPI master, the idea is a SPI "middle man". I'm familiar with avr and mbed development, i lost the contact with PICs long time ago, so this will an ...
0
votes
2answers
183 views

i2c communication problems unless test equipment is attached

I have a RaspberryPi acting as a master for an Atmel ATTiny861A slave over i2c, continuously sending a command plus 3 bytes of data to light an RGB LED. This works perfectly but ONLY if the AVR ...
1
vote
2answers
1k views

USB OTG port in slave mode, possible to use USB-A ports in host mode simultaneously?

I have been researching USB OTG for a little while and was not able to find an answer to my question. I'm seeking for the conditions, if it's even possible, under which I can have one USB OTG port ...
0
votes
3answers
651 views

How can I connect BeagleBone to 2 slaves with 1 “Chip Select” pin?

I have a BeagleBone white and I want to use it as a master which is connected to 2 slaves via an SPI connection, besides SCLK, DIN, and DOUT there is one pin of chip select "CS" "just one" and I need ...
2
votes
1answer
167 views

How do I2C modules select between more than 2 slave addresses?

I am using the TMP112 I2C temperature sensor and noticed that you can choose between 4 slave addresses by connecting the A0 pin to V+, GND, SCL, or SDA. How does the sensor tell between SCL, SDA, and ...
1
vote
1answer
206 views

Not enough digital outputs for SPI slave select lines (CS#)

I have a microcontroller with only 4 digital outputs available and 4 digital inputs. The problem is that I need to communicate with at least 4 SPI devices (ADC's and DAC's). 4 SPI devices means 2 ...
0
votes
2answers
362 views

Regarding SPI Slave Selection?

Consider that an SPI has more slaves. Suppose if more than one Slave wants to communicate with Master simultaneously then How does an SPI react in that situation? by means of priority or any other ...
0
votes
1answer
3k views

stm8s I2C Communication [closed]

I want to use I2C Communication between two stm8s208cb MCUs. I use stm8s standard peripharel library. My code: Master: ...
-2
votes
1answer
834 views

Modbus Rs-485 serial communication and polling with reference to manual

I have connected my slave and RS-485 using serial connection and using my computer as master device. I'm able to poll but I cant figure out which registers I'm polling as shown in image 1. I tried to ...
0
votes
1answer
191 views

SPI communication with multiple slaves

I am working on a project that is using an ATtiny861A and this only has one SPI. If I want to hook up a radio and an external memory to the same SPI, will there be an issue sending data from the ...
0
votes
3answers
195 views

usb to rs232 to usb

I have a system where there is usb slave device that is in a rotating structure behind a slipring. I need to pass the signal through the slipring (we only have 4 "wires") and onto a computer. Due to ...
0
votes
1answer
4k views

libmodbus trouble with reading from slave

I have the following code for connection to a temperature sensor as my slave using the libmodbus library in C, ...
1
vote
0answers
336 views

Using nRF8001 as a master with an FPGA

I would like to use Nordic's nRF8001 modules in Master and Slave modes and also would like to connect it with Spartan-3E FPGAs using SPI. I am considering buying the nRF8001 DevKit. I believe it is ...
-1
votes
1answer
853 views

USB OTG: Possible to perform emulation of slave device on master with drivers recognized?

I'm not exactly sure if this should be under a separate StackExchange topic altogether (programming maybe?), if it is, please move it and sorry for the inconvenience. I'm planning to build a device ...
-3
votes
1answer
2k views

How can we find the clock frequency (SCK) set by master from slave in SPI

How can we (in software, no probing using CRO) know what clock frequency the Master applies from slave (assuming I have no prior information of this). In general I program the Div_Reg register and I ...
6
votes
3answers
3k views

Are any USB-to-SPI *slave* bridge chips readily available?

I would like to interface a battery-powered device to USB, without requiring users to install drivers. Data transfer requirements are moderate, so the ~60kbytes/sec of HID mode would be fine, but I ...
2
votes
4answers
14k views

AVR SPI slave with interrupt

For a project I want to have two microcontrollers talk to each other via an SPI interface. I wrote the following code for the slave: ...
0
votes
1answer
503 views

high value resistors in optical slave trigger? Why?

In a commercial optical trigger, for triggering flash units remotely using the on camera flash, there are very high resistors two 30Mohm in series. Why such a circuit would need resistors so big? This ...
0
votes
2answers
989 views

PIC 32 two I²C slave address

I'm developping for a pic32 plateform. My application consists to realise I²C communication between µC 8051 and PIC32. The 8051 is the master and the PIC32 is the slave. I have established a I²C ...
11
votes
7answers
14k views

I2C slave address not acknowledged (sometimes)

I'm trying to communicate with a remotely connected FRAM (FM24C04 from Ramtron) by using I2C. This memory is embedded on a board that can be inserted and removed at any time to/from the system (...
4
votes
3answers
2k views

I2C EEPROM with non-standard address?

So I know that almost all i2c EEPROM ICs use 0xAh (or 1010) as the top four bits of the slave address. I currently have a 16 kbit EEPROM on my i2c bus that uses the lower 3 bits of the slave address ...
-3
votes
1answer
2k views

Interface microcontroller as i2c slave

How do I configure an I2C enabled microcontroller (NXP P89LPC9321) as a slave for the I2C enabled master? I have done some study on I2C interface. Please throw some light on this, preferably some ...
8
votes
5answers
28k views

multiple arduino communication (1 master, n slaves)

I would like to develop a master/slave network that consists of: 1 Arduino master that reads sensors and generates velocity ramp profiles based on the sensor signals and then sends those ramps to ...
5
votes
4answers
1k views

Small, inexpensive microcontroller capable of high speed SSP? [closed]

I'm looking for a small microcontroller that can accept high speed serial data. NXP calls it an SSP peripheral -- it works with an SPI, Microwire or SSI bus, and I'm using it in a 32-bit SSI ...
2
votes
4answers
13k views

AVR or Arduino Profibus interface project?

Is there an open source solution to interface any profibus slave or master chips? EDIT1: These are the latest finds for a Profibus slave AVR solution: AVR GCC with up to 187.5Kbps profibus slave in ...