Question

If my design calls for relatively fast data transmission between one microcontroller and 10 unique sensors...

If my design calls for relatively fast data transmission between one microcontroller and 10 unique sensors and the microcontroller only has 3 pins available for the communication bus, which serial protocol would you chose?

PWM

SPI

I2S

UART

I2C

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi,

Let us examine suitability of each protocol:

1. PWM (Pulse-Width Modulation): While analog information can be encoded into a PWM signal, but for 10 sensors, we would need to produce 10 PWM signals on sensor side. Then these will have to be received and decoded on microcontroller side. It will be rather complex to multiplex 10 PWM inputs on 3 microcontroller input lines. So this one is ruled out.

2. SPI (Serial Peripheral Interconnect): At the very least it needs two lines - MISO (Master-In Slave-Out) and SCK (Serial Clock). Now as there are 10 sensors (which would be configured as slaves), we need an additional Slave Select (SS) per sensor. Therefore 2+10= 12 lines are needed. Clearly this one does not work here.

3. I2S (Inter-IC Sound): This protocol is specifically designed for transmission and reception of two channels of digital audio data. So it not meant for application at hand.

4. UART (Universal Asynchronous Receiver Transmitter): This communication protocol is meant for async (i.e. clock signal need not be transmitted) communication between two nodes. Only TX and RX lines (and a ground line) are used. In its most basic form it provides no addressability or slave selection. It is not inherently meant to be used in a bus or star topology, where multiple nodes connect to central microcontroller. Theoretically it can be used provided:

a) the 9-bit extension of this protocol is used by both the sensors and the microcontroller. This extension does provide for addressability and hence allow multiprocessor communication. However I have not come across any sensors that use this extension natively.

b) Build a layer of software both on microcontroller and the sensor wherein each sensor is assigned a unique address. All sensors receive all the queries from the microcontroller but respond only when the receive their own address.

In a nutshell, this is tedious too.

5. I2C (Inter-Integrated Circuit): This protocol uses two signals (SDA - Serial Data and SCL - Serial Clock) and a ground wire. It is a multi-master, multi-slave protocol. So you can easily connect 10 (or more) sensors provided each sensor has a unique I2C address. Also there is a huge variety I2C sensors available commercially. So this is the most suitable protocol for this application.

Hope this helps.

Add a comment
Know the answer?
Add Answer to:
If my design calls for relatively fast data transmission between one microcontroller and 10 unique sensors...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 10. The Beck & Watson article is a Group of answer choices quantitative study qualitative study...

    10. The Beck & Watson article is a Group of answer choices quantitative study qualitative study 11. Beck & Watson examined participants' experiences and perceptions using what type of research design? Group of answer choices particpant obersvation phenomenology 12. Select the participants in the Beck & Watson study Group of answer choices Caucasian women with 2-4 children Caucasian pregnant women 13. In the Beck & Watson study, data was collected via a(n) Group of answer choices internet study focus group...

  • 14. Select the number of participants in the Beck & Watson study Group of answer choices...

    14. Select the number of participants in the Beck & Watson study Group of answer choices 8 13 22 35 15. Beck & Watson determined their final sample size via Group of answer choices coding saturation triangulation ethnography 16.Through their study, Beck & Watson determined Group of answer choices after a traumatic birth, subsequent births have no troubling effects after a traumatic birth, subsequent births brought fear, terror, anxiety, and dread Subsequent Childbirth After a Previous Traumatic Birth Beck, Cheryl...

  • 1. According to the paper, what does lactate dehydrogenase (LDH) do and what does it allow...

    1. According to the paper, what does lactate dehydrogenase (LDH) do and what does it allow to happen within the myofiber? (5 points) 2. According to the paper, what is the major disadvantage of relying on glycolysis during high-intensity exercise? (5 points) 3. Using Figure 1 in the paper, briefly describe the different sources of ATP production at 50% versus 90% AND explain whether you believe this depiction of ATP production applies to a Type IIX myofiber in a human....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT