CET 4711 Lab-3 Serial Data Communication and Control Prep (1)
.pdf
School
CUNY New York City College of Technology**We aren't endorsed by this school
Course
CET 4711
Subject
Computer Science
Date
Dec 20, 2024
Pages
3
Uploaded by MegaGiraffe1568
Computer Engineering Technology DepartmentCET 4711 Lab 3 prepSerial Data Communication and ControlCourse: CET 4711 Computer Controlled SystemsSection: HD81Semester: Fall 2024Instructor: Farrukh ZiaReport:Prep 3Student: Pierre-Ryan Baptiste23782815Date: 09/20/2024
lk089io=CET 4711 Lab-3: Serial Data Communication and ControlPre-Lab Assignment (to be done before beginning the lab exercise)All information is available in the files included in Lab#.zip file in Blackboard unless otherwise noted.Read Lab..folder > Reference >Serial Port Complete Ch_02.pdf (Formats and Protocols)Hint:Arduino microcontroller has three serial data communication interfaces,UART, I2C and SPI.Q1:What is themain differencebetween Asynchronous and Synchronous Communications?A1:In synchronous communication, a dedicated clock line is shared between devices, ensuring bothtransmitter and receiver are synchronized at a fixed rate. This clock line defines the timing of each bittransmission, making data transfer coordinated and continuous.In asynchronous communication, no clock line is shared. Each device uses its internal clock, andcommunication relies on timing parameters like Start and Stop bits to indicate the start and end of eachdata word. The receiver's clock must closely match the transmitter’s timing to avoid errors.Q2:Which Arduino data communication interface is Asynchronous? and which are Synchronous?A2:Asynchronous: UART (Universal Asynchronous Receiver/Transmitter)Synchronous: I2C (Inter-Integrated Circuit) and SPI (Serial Peripheral Interface)Read Lab..folder > Reference >Arduino Reference - Serial Communication.pdfQ3:On Uno, Nano, Mini, and Mega, pins 0 and 1 are used for communication with the computer.Connecting anything else to these pins causes what problems?A3:Connecting other components to pins 0 and 1 can interfere with communication between theArduino board and the computer, potentially causing issues such as failed uploads and interruptions indata transmission.Q4:In functionSerial.begin(speed)what are the units for ‘speed’parameter?A4:The speed parameter is in bits per second (bps), often referred to as the baud rate.
Q5:In functionSerial.print(val,format)what are the permitted values for optional secondparameter ‘format’?A5:The permitted values for the format parameter in Serial.print(val, format) are:BIN (binary, base 2)OCT (octal, base 8)DEC (decimal, base 10)HEX (hexadecimal, base 16)For floating-point numbers, the format parameter can specify the number of decimal places.