Engineering > QUESTIONS & ANSWERS > New York University _ NYU Tandon School of Engineering Take Home Quiz 2 ECE6483 – Real Time Embedd (All)
New York University _ NYU Tandon School of Engineering Take Home Quiz 2 ECE6483 – Real Time Embedded Systems. Midterm 2 NYU Tandon School of Engineering Take Home Quiz 2 ECE6483 – Real Time Embe... dded Systems PROBLEM 1 (20 Points): Suppose you are required to retrieve the temperature from the Analog Devices AD5933 chip, which is a chip used to make very precise impedance measurements. The interface is I2C and the relevant portions of the datasheet for this chip are attached. Also assume you have access to several I2C functions as follows: a. int Start_I2C() i. Initializes all of the I2C hardware pins etc. Returns 1 if successful, 0 otherwise b. int I2C_Write_Byte(uint8_t data) i. Writes ‘data’ on the I2C Bus. Returns 1 if slave ACK, 0 is slave NAK c. int I2C_Send_Start_Condition(uint8_t address, int isRead) i. Send a start or restart condition, followed by 7-bit address, followed by ‘isRead’ bit, which is 0 if write, 1 if read. ii. Returns 1 if successful, 0 otherwise d. int I2C_Send_Stop_Condition() i. returns 1 if successful, 0 otherwise e. int I2C_Request_Read(unint8_t *buffer, int numBytes) i. reads ‘numBytes’ bytes off the bus, each followed by an master ACK except for the last byte, which if followed by a master NAK indicating an end to the read. Returns 1 if it gets all the bytes, 0 otherwise and buffer holds the bytes. Using the datasheet provided, write a C code function float GetTemperature() required to get the temperature of the AD5933 chip. You can add any additional variables as long as you state what they are for and be sure to state any assumptions made. [Show More]
Last updated: 1 year ago
Preview 1 out of 15 pages
Instant download
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
Connected school, study & course
About the document
Uploaded On
Apr 29, 2023
Number of pages
15
Written in
This document has been written for:
Uploaded
Apr 29, 2023
Downloads
0
Views
59
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·