Question: // *************************************************************** // Identify the incorrect code by line number (i.e. 1, 6, 18). Enter one line number in each answer box. // This code

// ***************************************************************

// Identify the incorrect code by line number (i.e. 1, 6, 18). Enter one line number in each answer box.

// This code snippet is from a program that inputs chararacters from

// UART RX1, echos back chars+1.

// ***************************************************************

1.#include "pic24_all.h"

2.#include "std_io.h"

3.int main(void) {

4. uint8_t u8_c;

5.

6. configClock();

7. configDefaultUART(DEFAULT_BAUDRATE);

8.

9. printf(" Hello World! ");

10.

11. // Echo character + 1;

12. while (1) {

13. u8_c = inChar(); //get character

14. outChar(u8_c); //echo the character

15. u8_c++; //increment the character

16. outChar(u8_c); //echo the character

17. } // end while (1)

18.}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!