ECE347 - Extra HW on C language 1. Write a C language main function that multiplies two integers a and b, with the result being stored in a long integer. Use some arbitrary numbers for testing. 2....

ECE347 - Extra HW on C language

1. Write a C language main function that multiplies two integers a and b, with the result being stored in a long integer. Use some arbitrary numbers for testing.


2. Re-write the above problem such that the main function initializes a and b, then calls a function that uses a and b as input parameters, performs the multiplication, and returns the long result.


3. What is the Code Warrior name used to identify the data direction register, bit 6, on port P?


4. Write a simple C language function that initializes the GPIO bits on port B, such that bit 7 is an input with pullup enabled, bit 6 is an output, and no other bits are manipulated.







May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here