Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can an expert please Help me with this problem? the last expert did not full help and i wasn't able to complete the code. Please
Can an expert please Help me with this problem? the last expert did not full help and i wasn't able to complete the code. Please help me with this becuase i am really confused.
Different serial communication methods have different operating characteristics which make direct
translation of software drivers for them difficult. An example of this is IC which has an interface
protocol superimposed on its low level serial communication.
For this assignment you have received an email identifying as your device one of the seven different
IC devices on the BLEIOTA microprocessor board. You are to obtain the device datasheet
and other useful info you can find and implement a program which takes serial commands from the
PC and executes the functions VRaa and Waadd outlined below, where:
V is a request to print the device validation values of your device;
Raa is a request to read and report the value stored at address xaa of the device,
Waadd is a request to write the value xdd at address xaa of the device.
Function to print device validation values
void printDeviceValidation
Code to retrieve and print validation values from the device
printfDevice validation values:
;
Function to read and report value stored at address xaa'
void readAddressunsigned char address
Code to read data from specified address and report
printfValue at address xx:
address;
Function to write value xdd at address xaa'
void writeAddressunsigned char address, unsigned char value
Code to write specified value to specified address
printfWriting value xx to address xx
value, address;
int main
Sample code demonstrating command execution
Assume receiving commands from serial interface
Example command execution:
char command;
int address;
int value;
Assuming command received: V
printDeviceValidation;
Assuming command received: Raa
address xAA; Example address
readAddressaddress;
Assuming command received: Waadd
address xAA; Example address
value xDD; Example value
writeAddressaddress value;
return ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started