Question: Write an Embedded C Program that outputs strings to serial console. Using a writestr function, your code should output the following information to the serial

Write an Embedded C Program that outputs strings to serial console.

  1. Using a writestr function, your code should output the following information to the serial console
  • "Hello World from Atmega328"
  • "Embedded C Programming"
  • "" (replace with your name.
  • "char size = bits" (replace with the number of bits in the char data type as computed by your program. You may use the C "sizeof()" keyword, a switch statement, and string constants to complete this task.  
  • "int size = bits" (replace with the number of bits in the int data type as computed by your program. You may use the C "sizeof()" keyword, a switch statement, and string constants to complete this task.
  • "long size = bits" (replace with the number of bits in the long data type as computed by your program. You may use the C "sizeof()" keyword, a switch statement, and string constants to complete this task.  

After outputting the strings, your program should loop forever

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program include int main char name20 printfEnter your name scanfsname while1 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!