ME-106 HW Serial Communication and State Machine (1)

.docx

School

San Jose State University *

*We aren’t endorsed by this school

Course

106

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

4

Uploaded by KidSalmon4208

Report
ME-EE 106 Fundamentals of Mechatronics Name : Praxedo P. Gacrama III Date: 3/26/2024 SID: 015914054 Serial Communication and State Machine Summary What was learned in the assignment: Enter file name here Use dropdown here for date Page 1 of 4 In this assignment, I learned that I2C is the most known simple interface for connecting multiple peripherals as it only requires two bus lines, it supports multiple masters and slaves, it is a packet-switched protocol, and lastly, it is a serial communication protocol. In addition to learning I2C, I also learned the two bus lines, its pullup resistor value typically in range of 1.8k ohms to 10k ohms. On another matter, I learned that the UART uses two lines, the TX (transmitter) line and RX (receiver) line, which are used for transmitting and receiving data. The TX line of one device is connected to the RX line of the other device, vice versa. I also learned that besides start bit and stop bit, parity bit also is used for error detection. Lastly, I learned that the data transfer rate is the amount of digital data that’s moved from one place to another in a given time, making it the known rate related to speed of data transmission in a system sent every second. As for the part two of the assignment, I was able to get flashlight code to work after importing the eventer_1b_polls by saving the eventer_1b_polls code in the raspberry pi pico.
ME-EE 106 Fundamentals of Mechatronics (1) Which of the following is the most known simple interface for connecting multiple peripherals? A. I2C B. Serial port C. Parallel port D. SPI Solution (enter and describe below): For multiple reasons, I2C is the most known simple interface for connecting multiple peripherals. The first reason is that the I2C requires only two bus lines: Serial Data Line (SDA) and Serial Clock Line (SCL). This makes the setup simple and efficient because it links all connected devices through these two lines. Another reason is that the I2C supports multiple masters and multiples slaves, which means that more than one master and more than one slaves can be connected to it. Thus, giving I2C a significant advantage when it comes to connecting multiple peripherals. Moreover, I2C is a packet-switched protocol because the data is transmitted in small blocks, or packets, which can be checked for errors. Therefore, making communication more reliable. Lastly, I2C is a serial communication protocol, which means that data is sent bit by bit along a single wire (the SDA line). The answer for number 1 is A. I2C (2) The I2C is developed by Philips for use within the television sets. The I2C bus must have pullup resistors, one on the SDA line and one on the SCL line. The pullup resistance values are often in the range of A. 500 – 1000 ohms B. 1000 – 2000 ohms C. 2000 -10,000 ohms D. > 10,000 ohms Solution (enter and describe below): The typical range of these resistors is 1.8k ohms to 10k ohms. Therefore, the answer to this question is C. 2000-10,000 ohms. (3) How many wires does UART use? A. One B. Two C. Three D. Four Solution (enter and describe below): The UART uses two lines, the TX (transmitter) line and RX (receiver) line, which are used for transmitting and receiving data. The TX line of one device is connected to the RX line of the other device, vice versa. The answer to this question is B. Two Enter file name here Use dropdown here for date Page 2 of 4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help