[solved]-Void Uartconvertudec Unsigned Long N Part Lab 11 Implement Function 07 06 2019 Today 06 27 Q39005898
void UART_ConvertUDec(unsigned long n){
// as part of Lab 11 implement this function 07/06/2019
//Today 06/27/2019 I have to place one string of characterslike
// in function UART_ConvertDistance and comment all lines with acall
// to UART_OutChar
// Please Mr. can follow this format without printf orstr Important(today)
unsigned long digit, i;
String[0] = ‘ ‘; Here is theproblem today. So what is wrong here
String[1] = ‘ ‘; Here is theproblem today. So, what is wrong here
String[2] = ‘0’;
String[3] = ‘ ‘;
String[4] = ‘ ‘;
String[5] = ”;
//
if(n >9999){ // doesn’t chane here
String[0] = ‘*’;
String[1] = ‘*’;
String[2] = ‘*’;
String[3] = ‘*’;
String[4] = ‘ ‘;
String[5] = ”;
}
else
{
for(i=4;i>0;i–){ // Here is theproblem.Please how to change it. Has another function that willdisplay the char don’t need printf
digit =n%10; // Module
String[i] = digit – 0x30; //Conversion
n =n/10; // Simplify
}
}
}
Embedded System code for to convert a decimal number into aString[10] but only four characters is displaied use this formatand show where is wrong, please.
Expert Answer
Answer to void UART_ConvertUDec(unsigned long n){ // as part of Lab 11 implement this function 07/06/2019 //Today 06/27/2019 I hav… . . .
OR

